<div id="{{ field.id }}"
     class="field-json {% if error %}is-invalid{% endif %}"
     style="height: {{ field.height }}"
     data-modes="{{ field.modes | join(',') }}">
</div>
<input type="text"
       name="{{ field.id }}"
       value="{{ (data|tojson|forceescape) if data else 'null' }}"
       hidden/>
{% include "forms/_error.html" %}
