json
Validate that a form value is JSON.
Whitespace is trimmed before decoding. An empty value is accepted; combine the
validator with presence when the field is required. A valid value is returned
unchanged apart from surrounding whitespace.
For example:
<textarea id="settings" name="settings"></textarea>
{% validate id="settings" type={json} %}