Fix JSON query parsing with array syntax