Serializing CanvasObjects back to json #540
Florian-Kranz
started this conversation in
Ideas
Replies: 1 comment
-
Actually converting the object to a dict would be sufficient as they are easily convertible to json. Also it would be less specific to json, the dict could be serialized into a number of data-interchange formats. This is working for me so far:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there and fist of all thanks for this awesome package!
The CanvasObjects work great for the administrative/functional needs like adding users or enrolling them into courses and all that nice stuff. As I am working on a project where i basically proxy the canvas api, a nice feature would be to "deconstruct" the objects back into json.
Right now i am using a slightly modified CanvasObjects.repr function to return valid json, but this gets more complicated with nested json objects (e.g. course_progress in a course object).
What do you think of the idea to add a to_json() function or something like that to the CanvasObject?
Beta Was this translation helpful? Give feedback.
All reactions