I have a json as below
"facet_counts": {
"facet_pivot": {
"title,host,content,anchor,id": [
{
"field": "title",
"value": "biglobe",
"count": 192
}
]
}}
As normaly I will parse it like:
var json = JSON.parse(xhr.responseText);
var field = json.facet_counts.facet_pivot.title,host,content,anchor,id[0].field;
But this is wrong.
Can you tell me how to parse attribute "title,host,content,anchor,id"