Friday, 3 June 2016

When json get using viewbag string come " then remove " from my Json in javascript?

Presumably you have it in a variable and are using JSON.parse(data);. In which case, use:
JSON.parse(data.replace(/"/g,'"'));
You might want to fix your JSON-writing script though, because " is not valid in a JSON object.
shareimprove this answer

No comments:

Post a Comment