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