Hi I need to parse a json object which contains a space in it, how can I fetch it?
3 Answers
Accepted Answer
Post here the json, it HAS to work, I'm sure u're doing something funny there :)
This shouldn't be an issue, verify your json with an online tool.
Dan is right, the space shouldn't be an issue.
Although make sure that your json properties and values are between quotes.
For example, this won't work:{
prop: value with spaces
}
But this will:{
"prop": "value with spaces"
}
Your Answer
Think you can help? Login to answer this question!