}
if(!parser.nextFieldName(new SerializedString("spans"))){
throw new IOException("JSON serialized AnalyzedText MUST define the 'spans' field as first entry "
+ "in the root JSON object!");
}
if(parser.nextValue() != JsonToken.START_ARRAY){
throw new IOException("The value of the 'span' field MUST BE an Json Array!");
}
boolean first = true;
while(parser.nextValue() == JsonToken.START_OBJECT){
if(first){