WIP: Add query json processing script