javascript - JSON and Backslash -


Can any additional light be shed as my JSON is being given below, with the extra backslash I have ASP I'm using Net MVC, which sorts a figure when I debug in Visual Studio, it all looks fine, but when I look at the firebug then adds extra characters?

Any idea anyone?

<> "[[\" uid \ ": \" 516219026 \ ", \" pick \ ": \" http: //profile.ak.net/ \ ", \" first_name \ GetFBFriends () {FB.Connect.requireSession (function (): \ "Daniel \", \ "Last_name \": \ "James \", \ "fql_query_response_Id \": 0, \ "LifFide \": ($. {Url: "/ Facebook / GetFaceBookFriends", Type: 'POST', Data: Blank, Data Type: 'Jason', Success: Work (Results) {Data = "& lt; Table & gt;"; Warning (Result.length); (I = 0; i & lt; result.length; i ++) {data + = "& lt; tr> gt; & lt; td & gt; Lt; img src = "+ result [i] .pic +" alt = "+ result [i] .first_name +" /> gt; & lt; / td & gt; & lt; input type = 'checkbox' value = On "+" Result [i] .uid + "'name =' friends [] 'id =' buddy '+ result [i] .uid +"' /> gt; & lt; / td> & lt; td & gt; "+ Result [i] .first_name +" "+ result [i] .last_name +"

This is a firebug that shows the JSON string in string rendering Used to be. Think of it as a string with Jason-encoding JSON. Or, instead, if your JSON is inserted into a string in its javascript, it would seem like.

Your string does not really contain those backslashes; they are just saving for double quotes.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -