JSON parse inside jquery -
My collegue is returning for me with a function like this string
"A: 11: {s: 7: \" Export \ "key: 43: \"% 3Bbazos% 3Brealityexport% 3Breality% 3Bnehnut \ "Key: 10: \" bazos_date \ "Key: 10: \" 0000-00 - 00 \ "of: 10: \" bazos_idad \ "key: 8: \" 34,432,067 \ "key: 12: \" bazos_status \ "key: 2: \" ok \ "key: 9: \" rexp_date \ " : 10: \ "2013-11-13 \" key: 9: \ "real_date \" key: 0: \ "\" key: 9: \ "real_idad \" key: 0: \ "\" key: 11: \ "Real_status \" key: 0: \ "\" key: 11: \ "nehnut_date \" key: 0: \ "\" key: 11: \ "Nehnut_idad \"; s: 0: \ "\"; s : 13: \ "nehnut_status \"; s: 0: \ "\";} " I need to make Json, or any other As is access to the data, I tried $ $. PRJSANN but it tells that this is not a Jason object ... can anyone help me?
Just this is not a valid JSON, so parsezesan will never work. JSON will always be in the form of {"key1": "value1", "key2": "value2"} and so on. Your snippet also looks like double quote and double key ( a: 11: {... ), instead of a comma, as double quote marks you can return to valid JSON function Use an alternative means such as regex to parse the string or get some useful in some useful I suggest the first option.
Comments
Post a Comment