public static Query getQuery(String queryJson) throws JsonParseException,
            JsonMappingException, IOException {
        return JSON_MAPPER.readValue(queryJson, Query.class);
    }
public static Query getQuery ( String queryJson ) throws JsonParseException , JsonMappingException , IOException { return JSON_MAPPER . readValue ( queryJson , Query . class ) ; }
Converts the given query JSON into a Query object

@param queryJson query JSON String
@return Query object containing the query
@throws JsonParseException   Thrown if JSON parsing failed
@throws JsonMappingException Thrown if there was a problem mapping the JSON
@throws IOException          Thrown by the readValue method