What is wrong in this json string?

Posted by bala3569 on Stack Overflow See other posts from Stack Overflow or by bala3569
Published on 2010-05-17T07:20:21Z Indexed on 2010/05/17 7:40 UTC
Read the original article Hit count: 208

Filed under:
|

My json string looks like this,

{"id" : "38","heading" : "Can you also figure out how to get me back the 10 
hours I sp.....","description" : "Im having a very similar problem with the 
Login control - again it always generates a default style containing border
-collapse -only in this case .....","img_url" : "~/EventImages/
 EventImages1274014884460.jpg","catogory" : "News","doe" : "15-05-2010 "}

But get the error,

unterminated string literal....

EDIT:

I used this but it didn't work,

 var newjson = cfreturn( """" & ToString( HfJsonValue ).ReplaceAll( "(['""\\\/\n\r\t]{1})", "\\$1" ) & """" ) ;
    var jsonObj = eval('(' + newjson + ')');

Error: missing ) after argument list

Source Code:
     var newjson = cfreturn( """" & ToString( HfJsonValue ).ReplaceAll( "(['""\\\/\n\r\t]{1})", "\\$1" ) & """" ) ; 

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JSON