Escape user-input text to create valid JSON string

It’s definitely coding … but not necessarily a lot of it.

With an input field with placeholder “JSON-string-input”, the HTML code would be something like:
<script type="text/javascript"> if ("pageloaded" === "yes" && "mystring-is-not-empty" === "yes") { $('.bubble-element .Input[placeholder="JSON-string-input"]').val(JSON.stringify("mystring.value")).change(); } </script>

Replacing pageloaded and mystring-is-not-empty with dynamic values.

If you try it, I’ll help get it working.

Some of us are fiddling with the new element templates, so this will become a bit easier soon.