In the database, did you implement a GET request, and set data type to JSON, and it looks like your structure is jQuery based not JavaScript, maybe try this formula var json = '{"example": true,"example": }' , obj = JSON.parse(json); alert(obj.example);