NitriteMapper nitriteMapper = new JacksonMapper();
doc = nitriteMapper.parse("{" +
" score: 1034," +
" location: { " +
" state: 'NY', " +
" city: 'New York', " +
" address: {" +
" line1: '40', " +
" line2: 'ABC Street', " +
" house: ['1', '2', '3'] " +
" }" +
" }," +
" category: ['food', 'produce', 'grocery'], " +
" objArray: [{ field: 1}, {field: 2}]" +
"}");
collection.insert(doc);
collection.find(eq("location.address.line1", "40"));
collection.find(eq("location.address.house.2", "3"));
collection.find(eq("objArray.0.field", 1));