const str='{"data": "abcde", "id": 123450}'; let jsonObject=JSON.parse(str); console.log(jsonObject.data);