in src/main/java/org/apache/uima/json/jsoncas2/ser/ViewsDeserializer.java [41:56]
public Views deserialize(JsonParser aParser, DeserializationContext aCtxt)
throws IOException, JsonProcessingException {
if (aParser.currentToken() != JsonToken.START_OBJECT) {
throw new JsonParseException(aParser, "Views declaration must be a JSON object");
}
// Move to the first view if there is one
aParser.nextValue();
while (aParser.currentToken() != JsonToken.END_OBJECT) {
String viewName = aParser.getCurrentName();
deserializeView(aParser, aCtxt, viewName);
aParser.nextValue();
}
return new Views(getCas(aCtxt));
}