0

I have created a JSON and it is showing error on value of REF ID1, Can someone helpme out...

{
    "stat": "OK",
    "items": [
        {
            "userid": "___",
            "usereMail": "[email protected]",
            "refId1": "~!@#$%^&*()_+?": |\/;\}{\][`",
            "status":1,
            "expireon":"Never"
        }
]
}
2
  • 1
    You have an unescaped double quote in that value. You have to escape it. Commented Jun 28, 2013 at 6:25
  • 1
    check json code online using json.parser.online.fr Commented Jun 28, 2013 at 6:43

2 Answers 2

1

If you want to include a " as data in a string in a JSON text, you have to escape it with a slash, otherwise it is treated as the closing delimiter for the string.

?\":
Sign up to request clarification or add additional context in comments.

1 Comment

@PrasathK — Given that he knows exactly which property is causing the property, I don't think a larger example is really necessary.
1
{
    "stat": "OK",
    "items": [
        {
            "userid": "___",
            "usereMail": "[email protected]",
            "refId1": "~!@#$%^&*()_+?\": |/;}{][`",
            "status":1,
            "expireon":"Never"
        }
]
}

remove the this character ( \ ) and try, it work for me

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.