Fix JSON query parsing with array syntax
FEATURE: Further work changing deps to paks