# Processing JSON object with arrays using nested datatype

**URL:** <https://discuss.elastic.co/t/processing-json-object-with-arrays-using-nested-datatype/120612>\
**Category:** Elasticsearch\
**Created:** [February 20, 2018, 11:06am UTC](https://discuss.elastic.co/t/processing-json-object-with-arrays-using-nested-datatype/120612 "2018-02-20T11:06:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![acastellano](https://avatars.discourse-cdn.com/v4/letter/a/a3d4f5/32.png) [@acastellano](https://discuss.elastic.co/u/acastellano)\
**Post date:** [February 20, 2018, 11:06am UTC](https://discuss.elastic.co/t/processing-json-object-with-arrays-using-nested-datatype/120612/1 "2018-02-20T11:06:21Z")

</div>

Using the nested datatype for the below below JSON object still warns 'Object in arrays are not well supported'. Elasticsearch version is 5.5.2. Initially, I did not have 'nested' defined per every array within the JSON object structure, and thought that might have been the problem.

{  
"data": {  
"country": "US",  
"resolutions": [  
{  
"last\_resolved": "2017-05-19 00:00:00",  
"hostname": "bizspa.co.za"  
},  
{  
"last\_resolved": "2017-05-19 00:00:00",  
"hostname": "blessedcornerguesthouse.co.za"  
},  
{  
"last\_resolved": "2016-09-06 00:00:00",  
"hostname": "cimrecords.co.za"  
},  
{  
"last\_resolved": "2016-12-02 00:00:00",  
"hostname": "[davidmascott.org](http://davidmascott.org)"  
},  
{  
"last\_resolved": "2016-12-24 00:00:00",  
"hostname": "eureka.org.za"  
},  
{  
"last\_resolved": "2016-10-29 00:00:00",  
"hostname": "lebsimthattravelclub.co.za"  
},  
{  
"last\_resolved": "2016-08-13 00:00:00",  
"hostname": "nandnspeedauto.co.za"  
},  
{  
"last\_resolved": "2017-09-22 00:00:00",  
"hostname": "poseidoncapital.co.za"  
},  
{  
"last\_resolved": "2017-04-17 00:00:00",  
"hostname": "rrrprojects.co.za"  
},  
{  
"last\_resolved": "2018-01-09 00:00:00",  
"hostname": "selowa.co.za"  
},  
{  
"last\_resolved": "2016-11-11 00:00:00",  
"hostname": "www.nandnspeedauto.co.za"  
}  
],  
"detected\_urls": [  
{  
"positives": 1,  
"total": 64,  
"url": "[http://lebsimthattravelclub.co.za/](http://lebsimthattravelclub.co.za/)",  
"scan\_date": "2017-06-02 09:32:23"  
},  
{  
"positives": 4,  
"total": 64,  
"url": "[http://lebsimthattravelclub.co.za/index.html](http://lebsimthattravelclub.co.za/index.html)",  
"scan\_date": "2017-05-30 20:13:20"  
}  
],  
"response\_code": 1,  
"verbose\_msg": "IP address in dataset"  
},  
"feed": "VirusTotal-Duplicate",  
"time": "2018-02-11 18:41:47 EST"  
},  
{  
"feed": "VirusTotal",  
"data": {  
"country": "US",  
"response\_code": 1,  
"verbose\_msg": "IP address in dataset",  
"resolutions": [  
{  
"hostname": "bizspa.co.za",  
"last\_resolved": "2017-05-19 00:00:00"  
},  
{  
"hostname": "blessedcornerguesthouse.co.za",  
"last\_resolved": "2017-05-19 00:00:00"  
},  
{  
"hostname": "cimrecords.co.za",  
"last\_resolved": "2016-09-06 00:00:00"  
},  
{  
"hostname": "[davidmascott.org](http://davidmascott.org)",  
"last\_resolved": "2016-12-02 00:00:00"  
},  
{  
"hostname": "eureka.org.za",  
"last\_resolved": "2016-12-24 00:00:00"  
},  
{  
"hostname": "lebsimthattravelclub.co.za",  
"last\_resolved": "2016-10-29 00:00:00"  
},  
{  
"hostname": "nandnspeedauto.co.za",  
"last\_resolved": "2016-08-13 00:00:00"  
},  
{  
"hostname": "poseidoncapital.co.za",  
"last\_resolved": "2017-09-22 00:00:00"  
},  
{  
"hostname": "rrrprojects.co.za",  
"last\_resolved": "2017-04-17 00:00:00"  
},  
{  
"hostname": "selowa.co.za",  
"last\_resolved": "2018-01-09 00:00:00"  
},  
{  
"hostname": "www.nandnspeedauto.co.za",  
"last\_resolved": "2016-11-11 00:00:00"  
}  
],  
"detected\_urls": [  
{  
"total": 64,  
"positives": 1,  
"scan\_date": "2017-06-02 09:32:23",  
"url": "[http://lebsimthattravelclub.co.za/](http://lebsimthattravelclub.co.za/)"  
},  
{  
"total": 64,  
"positives": 4,  
"scan\_date": "2017-05-30 20:13:20",  
"url": "[http://lebsimthattravelclub.co.za/index.html](http://lebsimthattravelclub.co.za/index.html)"  
}  
]  
},  
"time": "2018-02-11 18:42:30 EST"  
}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 20, 2018, 11:21am UTC](https://discuss.elastic.co/t/processing-json-object-with-arrays-using-nested-datatype/120612/2 "2018-03-20T11:21:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
