onst setValue = document.querySelector('#set-value')

      setValue.addEventListener('click', () => {
        editor.setValue({
          "category": "Chocolates",
          "subcategory1": "Dark chocolate"
        })
      })
    </script>
  </body>
</html>
