public List<TextDocument> readTextDocuments(String json) throws CouchJsonException {
return readTextDocumentsUsingTree(json);
}
protected List<TextDocument> readTextDocumentsUsingTree(String json) throws CouchJsonException {
JsonFactory jsonFactory = objectMapper.getFactory();
try {
List<TextDocument> documentList;
try (JsonParser parser = jsonFactory.createParser(json)) {
if (parser.nextToken() != JsonToken.START_OBJECT) {
throw new IOException("Expected response JSON to start with an Object: " + parser.getCurrentToken());
}
documentList = new ArrayList<>();
while (parser.nextToken() != null) {