Vote count: 0 I receive a JSON string retued from a remote Webservice. Something like this: [{ "id": "001", "link": "Google" }, { "id": "002", "link": "Yahoo!" }] But then when i try to parse it in my Javascript, i have problem parsing it. I tried: var response_string = '[{"id":"001","link":"Google"},{"id":"002","link":"Yahoo!"}]'; console.log("Output (1) --> ", response_string); var response_object = JSON.parse(response_string); console.log("Output (2) --> ", response_object); Then the outputs are like: Output (1) --> [{"id":"001","link":"Google"},{"id":"002","link":"Yahoo!"}] Uncaught SyntaxError: Unexpected token h in JSON at position 30 I guess...
ادامه مطلب