Implemented full tree search for json data aggregation