Question:
I have some json that looks like this:JSON.stringify(json)
which gives me the following:details
here needs to be a string but when I send over the data I get the following error on the serverSyntaxError: Unexpected token } in JSON at position 114
Does anyone have any ideas here?
Answer:
JSON does not allow for single quotes, what you are trying to send is invalid. What you need to do is use double quotes and escape the internal quotes for the JSON key/values:If you have better answer, please add a comment about this, thank you!