NamespacesEventsblockly.events_namespace.blockbase_class.tojson_1_methodOn this page blockly > Events > BlockBase > toJson Events.BlockBase.toJson() method Encode the event as JSON. Signature: toJson(): BlockBaseJson; Returns: BlockBaseJson JSON representation.