New json structure for the query results