Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from mypackage import Basic
- # Attributes id and time will be auto-populated
- # If not specified, attributes source, type, and specversion use their respective default values
- event = Basic(data = 'Hello World!')
- event_json_str = event.to_JSON()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement