psq (parse search query) converts a search query into JSON