Java Code Examples for com.fasterxml.jackson.core.JsonParser#getLongValue()

The following examples show how to use com.fasterxml.jackson.core.JsonParser#getLongValue() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: AbstractEmoFieldUDF.java    From emodb with Apache License 2.0 6 votes vote down vote up
protected TimestampWritable narrowToTimestamp(JsonParser parser)
        throws IOException {
    switch (parser.getCurrentToken()) {
        case VALUE_STRING:
            try {
                return new TimestampWritable(new Timestamp(JsonHelper.parseTimestamp(parser.getValueAsString()).getTime()));
            } catch (Exception e) {
                // String wasn't an ISO8601 timestamp
                return null;
            }
        case VALUE_NUMBER_INT:
            return new TimestampWritable(new Timestamp(parser.getLongValue()));
        case VALUE_NUMBER_FLOAT:
            return new TimestampWritable(new Timestamp((long) parser.getFloatValue()));
        default:
            return null;

    }
}
 
Example 2
Source File: LngLatAltDeserializer.java    From geojson-jackson with Apache License 2.0 6 votes vote down vote up
private double extractDouble(JsonParser jp, DeserializationContext ctxt, boolean optional) throws IOException {
    JsonToken token = jp.nextToken();
    if (token == null) {
        if (optional)
            return Double.NaN;
        else
            throw ctxt.mappingException("Unexpected end-of-input when binding data into LngLatAlt");
    } else {
        switch (token) {
            case END_ARRAY:
                if (optional)
                    return Double.NaN;
                else
                    throw ctxt.mappingException("Unexpected end-of-input when binding data into LngLatAlt");
            case VALUE_NUMBER_FLOAT:
                return jp.getDoubleValue();
            case VALUE_NUMBER_INT:
                return jp.getLongValue();
            case VALUE_STRING:
                return jp.getValueAsDouble();
            default:
                throw ctxt.mappingException(
                        "Unexpected token (" + token.name() + ") when binding data into LngLatAlt");
        }
    }
}
 
Example 3
Source File: KeyFrameBindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public KeyFrame parseOnJackson(JsonParser jacksonParser) throws Exception {
  KeyFrame instance = new KeyFrame();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "name":
          // field name (mapped with "name")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.name=jacksonParser.getText();
          }
        break;
        case "duration":
          // field duration (mapped with "duration")
          instance.duration=jacksonParser.getLongValue();
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 4
Source File: Bean81PBindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public Bean81P parseOnJackson(JsonParser jacksonParser) throws Exception {
  Bean81P instance = new Bean81P();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "valueCurrency":
          // field valueCurrency (mapped with "valueCurrency")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.valueCurrency=CurrencyUtils.read(jacksonParser.getText());
          }
        break;
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "valueLocale":
          // field valueLocale (mapped with "valueLocale")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.valueLocale=LocaleUtils.read(jacksonParser.getText());
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 5
Source File: BindBean2SharedPreferences.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * for attribute valueLongArray parsing
 */
protected Long[] parseValueLongArray(String input) {
  if (input==null) {
    return null;
  }
  KriptonJsonContext context=KriptonBinder.jsonBind();
  try (JacksonWrapperParser wrapper=context.createParser(input)) {
    JsonParser jacksonParser=wrapper.jacksonParser;
    // START_OBJECT
    jacksonParser.nextToken();
    // value of "element"
    jacksonParser.nextValue();
    Long[] result=null;
    if (jacksonParser.currentToken()==JsonToken.START_ARRAY) {
      ArrayList<Long> collection=new ArrayList<>();
      Long item=null;
      while (jacksonParser.nextToken() != JsonToken.END_ARRAY) {
        if (jacksonParser.currentToken()==JsonToken.VALUE_NULL) {
          item=null;
        } else {
          item=jacksonParser.getLongValue();
        }
        collection.add(item);
      }
      result=CollectionUtils.asLongArray(collection);
    }
    return result;
  } catch(Exception e) {
    e.printStackTrace();
    throw(new KriptonRuntimeException(e.getMessage()));
  }
}
 
Example 6
Source File: Bean81CBindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public Bean81C parseOnJackson(JsonParser jacksonParser) throws Exception {
  Bean81C instance = new Bean81C();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "valueEnum":
          // field valueEnum (mapped with "valueEnum")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            String tempEnum=jacksonParser.getText();
            instance.valueEnum=StringUtils.hasText(tempEnum)?Bean81Enum.valueOf(tempEnum):null;
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 7
Source File: Bean8BindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public Bean8 parseOnJackson(JsonParser jacksonParser) throws Exception {
  Bean8 instance = new Bean8();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "ignore2":
          // field ignore2 (mapped with "ignore2")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.ignore2=jacksonParser.getText();
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 8
Source File: LongBeanTable.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * for attribute value parsing
 */
public static long[] parseValue(byte[] input) {
  if (input==null) {
    return null;
  }
  KriptonJsonContext context=KriptonBinder.jsonBind();
  try (JacksonWrapperParser wrapper=context.createParser(input)) {
    JsonParser jacksonParser=wrapper.jacksonParser;
    // START_OBJECT
    jacksonParser.nextToken();
    // value of "element"
    jacksonParser.nextValue();
    long[] result=null;
    if (jacksonParser.currentToken()==JsonToken.START_ARRAY) {
      ArrayList<Long> collection=new ArrayList<>();
      Long item=null;
      while (jacksonParser.nextToken() != JsonToken.END_ARRAY) {
        if (jacksonParser.currentToken()==JsonToken.VALUE_NULL) {
          item=null;
        } else {
          item=jacksonParser.getLongValue();
        }
        collection.add(item);
      }
      result=CollectionUtils.asLongTypeArray(collection);
    }
    return result;
  } catch(Exception e) {
    e.printStackTrace();
    throw(new KriptonRuntimeException(e.getMessage()));
  }
}
 
Example 9
Source File: BindBean2SharedPreferences.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * for attribute valueLongList parsing
 */
protected LinkedList<Long> parseValueLongList(String input) {
  if (input==null) {
    return null;
  }
  KriptonJsonContext context=KriptonBinder.jsonBind();
  try (JacksonWrapperParser wrapper=context.createParser(input)) {
    JsonParser jacksonParser=wrapper.jacksonParser;
    // START_OBJECT
    jacksonParser.nextToken();
    // value of "element"
    jacksonParser.nextValue();
    LinkedList<Long> result=null;
    if (jacksonParser.currentToken()==JsonToken.START_ARRAY) {
      LinkedList<Long> collection=new LinkedList<>();
      Long item=null;
      while (jacksonParser.nextToken() != JsonToken.END_ARRAY) {
        if (jacksonParser.currentToken()==JsonToken.VALUE_NULL) {
          item=null;
        } else {
          item=jacksonParser.getLongValue();
        }
        collection.add(item);
      }
      result=collection;
    }
    return result;
  } catch(Exception e) {
    e.printStackTrace();
    throw(new KriptonRuntimeException(e.getMessage()));
  }
}
 
Example 10
Source File: Bean81BBindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public Bean81B parseOnJackson(JsonParser jacksonParser) throws Exception {
  Bean81B instance = new Bean81B();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "valueEnum":
          // field valueEnum (mapped with "valueEnum")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            String tempEnum=jacksonParser.getText();
            instance.valueEnum=StringUtils.hasText(tempEnum)?Bean81Enum.valueOf(tempEnum):null;
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 11
Source File: JsonReader.java    From dropbox-sdk-java with MIT License 5 votes vote down vote up
public static long readUnsignedLong(JsonParser parser)
    throws IOException, JsonReadException
{
    try {
        long v = parser.getLongValue();
        if (v < 0) {
            throw new JsonReadException("expecting a non-negative number, got: " + v, parser.getTokenLocation());
        }
        parser.nextToken();
        return v;
    }
    catch (JsonParseException ex) {
        throw JsonReadException.fromJackson(ex);
    }
}
 
Example 12
Source File: TranslationFrameBindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public TranslationFrame parseOnJackson(JsonParser jacksonParser) throws Exception {
  TranslationFrame instance = new TranslationFrame();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "name":
          // field name (mapped with "name")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.name=jacksonParser.getText();
          }
        break;
        case "duration":
          // field duration (mapped with "duration")
          instance.duration=jacksonParser.getLongValue();
        break;
        case "translation":
          // field translation (mapped with "translation")
          if (jacksonParser.currentToken()==JsonToken.START_OBJECT) {
            instance.translation=vector3BindMap.parseOnJackson(jacksonParser);
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 13
Source File: BeanInnerBindMap.java    From kripton with Apache License 2.0 5 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public BeanInner parseOnJackson(JsonParser jacksonParser) throws Exception {
  BeanInner instance = new BeanInner();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 14
Source File: PhoneNumberBindMap.java    From kripton with Apache License 2.0 4 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public PhoneNumber parseOnJackson(JsonParser jacksonParser) throws Exception {
  PhoneNumber instance = new PhoneNumber();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "actionType":
          // field actionType (mapped with "actionType")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            String tempEnum=jacksonParser.getText();
            instance.actionType=StringUtils.hasText(tempEnum)?ActionType.valueOf(tempEnum):null;
          }
        break;
        case "contactId":
          // field contactId (mapped with "contactId")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.contactId=jacksonParser.getText();
          }
        break;
        case "contactName":
          // field contactName (mapped with "contactName")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.contactName=jacksonParser.getText();
          }
        break;
        case "countryCode":
          // field countryCode (mapped with "countryCode")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.countryCode=jacksonParser.getText();
          }
        break;
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "number":
          // field number (mapped with "number")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.number=jacksonParser.getText();
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 15
Source File: AttachmentHintsDeserializer.java    From webauthn4j with Apache License 2.0 4 votes vote down vote up
@Override
public AttachmentHints deserialize(JsonParser p, DeserializationContext ctxt) throws IOException {
    return new AttachmentHints(p.getLongValue());
}
 
Example 16
Source File: PrimitiveKVHandler.java    From jackson-datatypes-collections with Apache License 2.0 4 votes vote down vote up
public long value(DeserializationContext ctx, JsonParser parser) throws IOException {
    return parser.getLongValue();
}
 
Example 17
Source File: PostBindMap.java    From kripton with Apache License 2.0 4 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public Post parseOnJackson(JsonParser jacksonParser) throws Exception {
  Post instance = new Post();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "body":
          // field body (mapped with "body")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.body=jacksonParser.getText();
          }
        break;
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "title":
          // field title (mapped with "title")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.title=jacksonParser.getText();
          }
        break;
        case "userId":
          // field userId (mapped with "userId")
          instance.userId=jacksonParser.getLongValue();
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 18
Source File: Bean81SBindMap.java    From kripton with Apache License 2.0 4 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public Bean81S parseOnJackson(JsonParser jacksonParser) throws Exception {
  Bean81S instance = new Bean81S();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "valueByteArray":
          // field valueByteArray (mapped with "valueByteArray")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.valueByteArray=jacksonParser.getBinaryValue();
          }
        break;
        case "valueMapStringInteger":
          // field valueMapStringInteger (mapped with "valueMapStringInteger")
          if (jacksonParser.currentToken()==JsonToken.START_ARRAY) {
            HashMap<String, Integer> collection=new HashMap<>();
            String key=null;
            Integer value=null;
            while (jacksonParser.nextToken() != JsonToken.END_ARRAY) {
              jacksonParser.nextValue();
              key=jacksonParser.getText();
              jacksonParser.nextValue();
              if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
                value=jacksonParser.getIntValue();
              }
              collection.put(key, value);
              key=null;
              value=null;
              jacksonParser.nextToken();
            }
            instance.valueMapStringInteger=collection;
          }
        break;
        case "valueInteger":
          // field valueInteger (mapped with "valueInteger")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.valueInteger=jacksonParser.getIntValue();
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 19
Source File: PrefixConfigBindMap.java    From kripton with Apache License 2.0 4 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public PrefixConfig parseOnJackson(JsonParser jacksonParser) throws Exception {
  PrefixConfig instance = new PrefixConfig();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "defaultCountry":
          // field defaultCountry (mapped with "defaultCountry")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.defaultCountry=jacksonParser.getText();
          }
        break;
        case "dialogTimeout":
          // field dialogTimeout (mapped with "dialogTimeout")
          instance.dialogTimeout=jacksonParser.getLongValue();
        break;
        case "dualBillingPrefix":
          // field dualBillingPrefix (mapped with "dualBillingPrefix")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.dualBillingPrefix=jacksonParser.getText();
          }
        break;
        case "enabled":
          // field enabled (mapped with "enabled")
          instance.enabled=jacksonParser.getBooleanValue();
        break;
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}
 
Example 20
Source File: UserBindMap.java    From kripton with Apache License 2.0 4 votes vote down vote up
/**
 * parse with jackson
 */
@Override
public User parseOnJackson(JsonParser jacksonParser) throws Exception {
  User instance = new User();
  String fieldName;
  if (jacksonParser.currentToken() == null) {
    jacksonParser.nextToken();
  }
  if (jacksonParser.currentToken() != JsonToken.START_OBJECT) {
    jacksonParser.skipChildren();
    return instance;
  }
  while (jacksonParser.nextToken() != JsonToken.END_OBJECT) {
    fieldName = jacksonParser.getCurrentName();
    jacksonParser.nextToken();

    // Parse fields:
    switch (fieldName) {
        case "address":
          // field address (mapped with "address")
          if (jacksonParser.currentToken()==JsonToken.START_OBJECT) {
            instance.address=addressBindMap.parseOnJackson(jacksonParser);
          }
        break;
        case "company":
          // field company (mapped with "company")
          if (jacksonParser.currentToken()==JsonToken.START_OBJECT) {
            instance.company=companyBindMap.parseOnJackson(jacksonParser);
          }
        break;
        case "email":
          // field email (mapped with "email")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.email=jacksonParser.getText();
          }
        break;
        case "id":
          // field id (mapped with "id")
          instance.id=jacksonParser.getLongValue();
        break;
        case "name":
          // field name (mapped with "name")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.name=jacksonParser.getText();
          }
        break;
        case "phone":
          // field phone (mapped with "phone")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.phone=jacksonParser.getText();
          }
        break;
        case "username":
          // field username (mapped with "username")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.username=jacksonParser.getText();
          }
        break;
        case "website":
          // field website (mapped with "website")
          if (jacksonParser.currentToken()!=JsonToken.VALUE_NULL) {
            instance.website=jacksonParser.getText();
          }
        break;
        default:
          jacksonParser.skipChildren();
        break;}
  }
  return instance;
}