get JSON for form to work