From the backend I get a string(nothing I could handle with JSON.parse or JSON.stringify):
"{
Search_Ids: [
{ "searchId": "428784921" },
{ "searchId": "428784922" },
{ "searchId": "428784923" },
{ "searchId": "428784924" },
{ "searchId": "428784925" }
],
Checksum: 5
}"
I want to convert a JavaScript string to a Javascript object. Using JSON class does not work.
Search_Idsnot quoted in your input? Do you control the backend, is it possible to fix it?var x={ Search_Ids: [ { "searchId": "428784921" }, { "searchId": "428784922" }, { "searchId": "428784923" }, { "searchId": "428784924" }, { "searchId": "428784925" } ], Checksum: 5 };with quation marks at the beginning does not work