Allow passing of query/sort as string (and convert to JSON from that)