My server is using ServiceStack and would like to receive some data like this:
{ Customer: { Company: \"TheCompany\", RegionCode: \"AU_NS
Attach a submit handler to the form which places the JSON as the value of a pre-created hidden input field within the form.
$(form_to_submit).on('submit', function() { $(form_to_submit).find(hidden_input).val(json_value); });
To submit a form using jQuery you use:
$(form_to_submit).submit();