replaced form data with JSON