const json=JSON.stringify({id:1,parent_id:0,name:'Some element'}); const data=JSON.parse(json); console.log('ID: ',data.id); console.log('Parent: ',data.parent_id); console.log('Name: ',data.name);