@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public NumberType getNumberType() throws IOException, JsonParseException { JsonNode n = currentNumericNode(); return (n == null) ? null : n.numberType(); }
@Override public JsonParser.NumberType numberType() { return tree().numberType(); }
public static Object toRS(JsonNode value) { if (value.getNodeType() == JsonNodeType.STRING) { return value.asText(); } else if (value.getNodeType() == JsonNodeType.NUMBER) { if (value.numberType() == JsonParser.NumberType.INT) { return value.asInt(); } else if (value.numberType() == JsonParser.NumberType.LONG) { return value.asLong(); } else if (value.numberType() == JsonParser.NumberType.DOUBLE) { return value.asDouble(); } } else if (value.getNodeType() == JsonNodeType.BOOLEAN) { return value.asBoolean(); } else if ( value instanceof ArrayNode ) { List<Object> array = new ArrayList<Object>(); value.elements().forEachRemaining( (e)->{ array.add( toRS( e ) ); }); return array; } else if (value instanceof ObjectNode) { return convert( (ObjectNode) value ); } return null; }
if (!(f instanceof LatLonPoint)) { if (val.isNumber()) { switch (val.numberType()) { case FLOAT: case DOUBLE: