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