javascript - Error with parsing string type to JSON objects -


I am trying to parse my string in JSON object, but it does not work. When I debug the code, I get a syntax error. Here is the string I want to parse:

  var listString = "{title: 'MySchema'," + "root : {Id: '"+ + headID +"', "+" Title: '"+ Top Top [0]. Design + "'," + "Subtitle:'" + Headname + "',"; List + "'," + "Subtitle: '" + + Title + "'," + + "+ + +" + + " {Id: "+ +" + + "," + "Title: Type: '' + Child [CNT]. Tappaw + "'"; Liststring = getChildNodes (task entries, head, liststring); Liststring = liststring + "},";} liststring = liststring + "]}}";} listString = childliststring; $  

$. ParseJSON (listString);

In exchange, I do not get any JSON object any thoughts?

journal JSON string '{"key": "value"}' format

JSON.parse ("{id: '1'}");

Syntax Error: Unexpected token i

JSON.parse ("{'id': '1'}");

Syntax Error: Unexpected token '

JSON.parse (' {"id": "1"} ');

object {id: "1"}

JSON.parse ('{"id": 1}');

object {id: 1}


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -