NamespacesEventsblockly.events.selected.tojsonOn this pageHome > blockly > Events > Selected > toJson Events.Selected.toJson() method Encode the event as JSON. Signature: toJson(): SelectedJson; Returns: SelectedJson JSON representation.