JSON readers for queries and terms.