NamespacesEventsblockly.events.blockbase.tojsonOn this pageHome > blockly > Events > BlockBase > toJson Events.BlockBase.toJson() method Encode the event as JSON. Signature: toJson(): BlockBaseJson; Returns: BlockBaseJson JSON representation.