Reputation: 55
I am getting an error while sending a json object to server. My json object is as follows:
{
"AppVersion": "2.0",
"connection": "3G",
"received": "2015-10-30",
"smsContent": "test string",
"msisdn": "923453334444"
}
When I send request, I am getting this error:
Malformed JSON: Unexpected 'c'
What is wrong with my json object? Can someone help here?
Upvotes: 1
Views: 1095
Reputation: 29
This may be due to the incorrect syntax of your code. I also got this error and corrected by eliminating unnecessary semicolons from my code.
Upvotes: 1