The guide Create a contact form briefly mentions that you can use the JSON API by adding
json: true to the options. It gives an example response, but not much more than that.
I'd like to submit some data via an AJAX request but am currently unsure how to do this. I'd like to know the two things mentioned above.