How do I initialize a value when empty?
You might try using a separate "clear" button component to manually set the value of your JSON editor.
Right now, if the state of the editor is invalid JSON (including when it's empty) then the value of the component won't update:
Unfortunately, the input value of the editor is inaccessible as long as that's the case.
Let me know if using a button helps?