{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2434","repository_url":"https://api.github.com/repos/mapbox/mapbox-gl-js","labels_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2434/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2434/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2434/events","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2434","id":148098937,"number":2434,"title":"#queryRenderedFeatures does not give the underlying JSON completely","user":{"login":"hsinister","id":7836781,"avatar_url":"https://avatars.githubusercontent.com/u/7836781?v=3","gravatar_id":"","url":"https://api.github.com/users/hsinister","html_url":"https://github.com/hsinister","followers_url":"https://api.github.com/users/hsinister/followers","following_url":"https://api.github.com/users/hsinister/following{/other_user}","gists_url":"https://api.github.com/users/hsinister/gists{/gist_id}","starred_url":"https://api.github.com/users/hsinister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsinister/subscriptions","organizations_url":"https://api.github.com/users/hsinister/orgs","repos_url":"https://api.github.com/users/hsinister/repos","events_url":"https://api.github.com/users/hsinister/events{/privacy}","received_events_url":"https://api.github.com/users/hsinister/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/bug","name":"bug","color":"0052cc"},{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/labels/needs%20discussion","name":"needs discussion","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-13T15:30:37Z","updated_at":"2016-05-14T19:22:14Z","closed_at":null,"body":"**v0.16.0**:\r\n\r\nHi! This is my first issue report, so I hope I get it right.\r\n\r\nBasically I'm trying to use the function queryRenderedFeatures to get the underlying data in JSON format to present on a popup. This works for the higher level of the JSON data (I can show the data on the popup), but fails to get the more deeply nested data - a console.log suggests that the objects have been converted into a string instead.\r\n\r\nHere's the link to the issue as demonstrated using the example on \"popup on hover\": [jsbin](https://jsbin.com/leroki/edit?html,console,output)\r\n\r\nI've edited the data such that there is only a single marker and also added an array of objects called \"list\" under \"properties\" a la feature.properties.list. I've also changed the popup HTML to display the first element of what is supposed to be a list.\r\n\r\n\r\n### Expected Behavior\r\nI expect that on hover the popup should display the first object, {\"id\":1,\"name\":\"A\"}.\r\n\r\n### Actual Behavior\r\nInstead, it shows \"[\", which confirms that it returns a string instead of the object."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/comments/219238399","html_url":"https://github.com/mapbox/mapbox-gl-js/issues/2434#issuecomment-219238399","issue_url":"https://api.github.com/repos/mapbox/mapbox-gl-js/issues/2434","id":219238399,"user":{"login":"shkfnly","id":5394790,"avatar_url":"https://avatars.githubusercontent.com/u/5394790?v=3","gravatar_id":"","url":"https://api.github.com/users/shkfnly","html_url":"https://github.com/shkfnly","followers_url":"https://api.github.com/users/shkfnly/followers","following_url":"https://api.github.com/users/shkfnly/following{/other_user}","gists_url":"https://api.github.com/users/shkfnly/gists{/gist_id}","starred_url":"https://api.github.com/users/shkfnly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shkfnly/subscriptions","organizations_url":"https://api.github.com/users/shkfnly/orgs","repos_url":"https://api.github.com/users/shkfnly/repos","events_url":"https://api.github.com/users/shkfnly/events{/privacy}","received_events_url":"https://api.github.com/users/shkfnly/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T19:22:14Z","updated_at":"2016-05-14T19:22:14Z","body":"@gmaclennan Did features at return the whole nested geojson previously?"}}