create a form field that validates that json input is valid