How do I send JSON to server instead of HTTP parameters/variables?
How do I send JSON to server instead of HTTP parameters/variables?
![dhutton@creativeone.com](https://secure.gravatar.com/avatar/dda0a8935cc2a0bbdeadce3382d32764/?default=https%3A%2F%2Fvanillicon.com%2Fdda0a8935cc2a0bbdeadce3382d32764_200.png&rating=g&size=120)
I have a database that sends and receives JSON and is not configured to parse data in editors default form.
(for example: data[0][extn] = 2947)
I keep getting error code 415 (Unsupported Media Type)
How can I convert the data to JSON before making my ajax call?
This discussion has been closed.
Answers
Hi @dhutton@creativeone.com ,
You can modify the Ajax payload in
ajax.data
,Cheers,
Colin