in src/main/java/org/apache/sling/contentparser/json/internal/JSONContentParser.java [94:106]
private JsonObject toJsonObjectWithJsonTicks(JsonReaderFactory jsonReaderFactory, InputStream is)
throws IOException {
String jsonString = IOUtils.toString(is, StandardCharsets.UTF_8);
// convert ticks to double quotes
jsonString = JSONTicksConverter.tickToDoubleQuote(jsonString);
try (JsonReader reader = jsonReaderFactory.createReader(new StringReader(jsonString))) {
return reader.readObject();
} catch (JsonParsingException ex) {
throw new IOException("Error parsing JSON content.", ex);
}
}