I am new to JSON. Are there any methods in JSON parser to remove the comment characters from a response.
Eg. //{“response”:”success”…….
its SBJson for iPhone.
from http://code.google.com/p/json-framework
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The JSON grammar doesn’t allow comments. That doesn’t answer your question obviously, but I suspect you’ll have to do some string manipulation and replace all those comment characters with empty strings and parse it with the JSON library only after doing so.