Click here to Skip to main content
15,672,471 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

I have a json string i.e. [{"id":1,"forename":"vinay","surname":"sorout"}]

I can easily convert this json string to object in chrome browser using eval(), jquery.parseJSON() or JSON.parse()

But in SAFARI BROWSER it doest not convert this JSON string to OBJECT.

Please provide me any solution for this

Thanks in advance
Ankur\m/ 18-Jun-13 1:01am    
Is the json string returned in an AJAX call?

1 solution

Where does the string come from ? If it comes from an AJAX call, set your return type to be JSON, so you don't need to manually parse it at all.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900