NamespacesEventsblockly.events_namespace.varbase_class.tojson_methodOn this pageblockly > Events > VarBase > toJson Events.VarBase.toJson() method Encode the event as JSON. Signature: toJson(): VarBaseJson; Returns: VarBaseJson JSON representation.