NamespacesEventsblockly.events_namespace.selected_class.tojson_1_methodOn this page blockly > Events > Selected > toJson Events.Selected.toJson() method Encode the event as JSON. Signature: toJson(): SelectedJson; Returns: SelectedJson JSON representation.