public static List<PredicateQuery> parseQueriesFromFile(String queryFile, int maxQueryCount) throws IOException {
        PredicateQuerySerializer serializer = new PredicateQuerySerializer();
        try (BufferedReader reader = new BufferedReader(new FileReader(queryFile), 8 * 1024)) {
            return reader.lines()
                    .limit(maxQueryCount)
                    .map(serializer::fromJSON)
                    .toList();
        }
    }
Converts {@link PredicateQuery} to and from JSON

Example:
 {
     features: [
         {"k": "key-name", "v":"value", "s":"0xDEADBEEFDEADBEEF"}
     ],
     rangeFeatures: [
         {"k": "key-name", "v":42, "s":"0xDEADBEEFDEADBEEF"}
     ]
 }

@author bjorncs
predicate-search/src/main/java/com/yahoo/search/predicate/serialization/PredicateQuerySerializer.java