switch (jp.nextToken()) { case START_OBJECT: value = deserializeObject(jp, ctxt, nodeFactory); break; case START_ARRAY: value = deserializeArray(jp, ctxt, nodeFactory); break; case VALUE_STRING: break; default: value = deserializeAny(jp, ctxt, nodeFactory); _handleDuplicateField(fieldName, node, old, value);
return deserializeObject(jp, ctxt, nodeFactory); return deserializeArray(jp, ctxt, nodeFactory); return deserializeObject(jp, ctxt, nodeFactory); throw ctxt.mappingException(getValueClass());
protected final ArrayNode deserializeArray(JsonParser jp, DeserializationContext ctxt, final JsonNodeFactory nodeFactory) throws IOException, JsonProcessingException { ArrayNode node = nodeFactory.arrayNode(); while (true) { switch (jp.nextToken()) { case START_OBJECT: node.add(deserializeObject(jp, ctxt, nodeFactory)); break; case START_ARRAY: node.add(deserializeArray(jp, ctxt, nodeFactory)); break; case END_ARRAY: return node; case VALUE_STRING: node.add(nodeFactory.textNode(jp.getText())); break; default: node.add(deserializeAny(jp, ctxt, nodeFactory)); break; } } }
protected final ArrayNode deserializeArray(JsonParser jp, DeserializationContext ctxt, final JsonNodeFactory nodeFactory) throws IOException, JsonProcessingException { ArrayNode node = nodeFactory.arrayNode(); while (true) { switch (jp.nextToken()) { case START_OBJECT: node.add(deserializeObject(jp, ctxt, nodeFactory)); break; case START_ARRAY: node.add(deserializeArray(jp, ctxt, nodeFactory)); break; case END_ARRAY: return node; case VALUE_STRING: node.add(nodeFactory.textNode(jp.getText())); break; default: node.add(deserializeAny(jp, ctxt, nodeFactory)); break; } } }
switch (jp.nextToken()) { case START_OBJECT: value = deserializeObject(jp, ctxt, nodeFactory); break; case START_ARRAY: value = deserializeArray(jp, ctxt, nodeFactory); break; case VALUE_STRING: break; default: value = deserializeAny(jp, ctxt, nodeFactory); _handleDuplicateField(fieldName, node, old, value);
protected final ArrayNode deserializeArray(JsonParser jp, DeserializationContext ctxt, final JsonNodeFactory nodeFactory) throws IOException, JsonProcessingException { ArrayNode node = nodeFactory.arrayNode(); while (true) { switch (jp.nextToken()) { case START_OBJECT: node.add(deserializeObject(jp, ctxt, nodeFactory)); break; case START_ARRAY: node.add(deserializeArray(jp, ctxt, nodeFactory)); break; case END_ARRAY: return node; case VALUE_STRING: node.add(nodeFactory.textNode(jp.getText())); break; default: node.add(deserializeAny(jp, ctxt, nodeFactory)); break; } } }
return deserializeObject(jp, ctxt, nodeFactory); return deserializeArray(jp, ctxt, nodeFactory); return deserializeObject(jp, ctxt, nodeFactory); throw ctxt.mappingException(getValueClass());
switch (jp.nextToken()) { case START_OBJECT: value = deserializeObject(jp, ctxt, nodeFactory); break; case START_ARRAY: value = deserializeArray(jp, ctxt, nodeFactory); break; case VALUE_STRING: break; default: value = deserializeAny(jp, ctxt, nodeFactory); _handleDuplicateField(fieldName, node, old, value);
protected final ArrayNode deserializeArray(JsonParser jp, DeserializationContext ctxt, final JsonNodeFactory nodeFactory) throws IOException, JsonProcessingException { ArrayNode node = nodeFactory.arrayNode(); while (true) { switch (jp.nextToken()) { case START_OBJECT: node.add(deserializeObject(jp, ctxt, nodeFactory)); break; case START_ARRAY: node.add(deserializeArray(jp, ctxt, nodeFactory)); break; case END_ARRAY: return node; case VALUE_STRING: node.add(nodeFactory.textNode(jp.getText())); break; default: node.add(deserializeAny(jp, ctxt, nodeFactory)); break; } } }
return deserializeObject(jp, ctxt, nodeFactory); return deserializeArray(jp, ctxt, nodeFactory); return deserializeObject(jp, ctxt, nodeFactory); throw ctxt.mappingException(getValueClass());
switch (jp.nextToken()) { case START_OBJECT: value = deserializeObject(jp, ctxt, nodeFactory); break; case START_ARRAY: value = deserializeArray(jp, ctxt, nodeFactory); break; case VALUE_STRING: break; default: value = deserializeAny(jp, ctxt, nodeFactory); _handleDuplicateField(fieldName, node, old, value);
return deserializeObject(jp, ctxt, nodeFactory); return deserializeArray(jp, ctxt, nodeFactory); return deserializeObject(jp, ctxt, nodeFactory); throw ctxt.mappingException(getValueClass());