Dharmendra (.Net)

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
answered Feb 11 '12 at 23:07
Niet the Dark Absol
200k32224350
add a comment
Posted by Unknown at 01:48 No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2016 (8)
    • ►  July (1)
    • ▼  June (1)
      • When json get using viewbag string come " then rem...
    • ►  May (3)
    • ►  February (3)
  • ►  2015 (46)
    • ►  September (2)
    • ►  August (2)
    • ►  July (9)
    • ►  June (1)
    • ►  May (6)
    • ►  April (9)
    • ►  March (7)
    • ►  February (1)
    • ►  January (9)
  • ►  2014 (51)
    • ►  December (6)
    • ►  November (7)
    • ►  September (2)
    • ►  August (6)
    • ►  July (5)
    • ►  June (5)
    • ►  May (4)
    • ►  April (14)
    • ►  March (2)
  • ►  2013 (1)
    • ►  February (1)

About Me

Unknown
View my complete profile
Watermark theme. Powered by Blogger.