1

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?

5
  • Your JSON seems to be valid. Show screen shots of the POSTMAN Commented Oct 30, 2015 at 6:49
  • Where is this error coming from? Postman or in the response from the server? Commented Oct 30, 2015 at 6:50
  • Could you post your local server code? Commented Oct 30, 2015 at 6:52
  • Your screenshot says, there is some error at your server code. Commented Oct 30, 2015 at 6:52
  • Yes, the error is coming from server. Thanks! Commented Oct 30, 2015 at 6:59

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.