-
Notifications
You must be signed in to change notification settings - Fork 58
Implement to_json and from_json #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@evankanderson you had mentioned the creation of to_json and from_json methods previously. I would like clarification on what you thought the json should consist of. I'm unsure if to_json should return a json object which looks like this:
The above would allow users to directly read the data and pass it into the CloudEvent constructor. Another option could be more HTTP oriented such as:
Let me know what you had in mind! |
I was thinking of the json data exchange format defined here: https://github.com/cloudevents/spec/blob/v1.0/json-format.md |
Note that the payload may be encoded as either |
to_json and from_json in cloudevents.sdk.http.event.py raises notimplemented error
The text was updated successfully, but these errors were encountered: