const container = document.getElementById("id_editor"); var options = { modes: ['code', 'tree'], mode: "code", }; const editor = new JSONEditor(container, options);