I am trying to post a json with xml message inside it. However it returns
invalid character \'b\' looking for beginning of value
I think the possible reason
I have the problem, too. It's because vue request api stringifies the json data, keep request data is json data. like curl apiUrl -H '' -d '{"a":1,"b":2}', not curl apiUrl -H '' -d 'a=1&b=2', I think keep your response is json data will be resolved
curl apiUrl -H '' -d '{"a":1,"b":2}'
curl apiUrl -H '' -d 'a=1&b=2'