monster.ui.getJsoneditor()

Syntax

monster.ui.getJsoneditor(target)

Parameters

KeyDescriptionTypeDefaultRequired
targetThe JSON Editor widget container.jQuerytrue

Return

An instance of the JSONEditor or null if the editor’s container does not exist.

Description

The monster.ui.getJsoneditor() method provides access to the editor’s instance from the DOM using the target parameter, which is the JSONEditor container. This method returns the JSONEditor instance.

To get the JSONEditor, you just need to pass the target parameter:

// Editor's container
var $target = $('#jsoneditor');

var jsoneditor = monster.ui.getJsoneditor($target)

On this page