started work on JSON query