@Override public SpatialReference deserialize(JsonParser parser, DeserializationContext arg1) throws IOException, JsonProcessingException { try { return SpatialReference.fromJson(parser); } catch (Exception e) { return null; } } }
/** * Returns spatial reference from the JsonParser. * * @param parser * The JSON parser. * @return The spatial reference or null if there is no spatial reference * information, or the parser does not point to an object start. * @throws Exception * if parsing has failed */ public static SpatialReference fromJson(JsonParser parser) throws Exception { return fromJson(new JsonParserReader(parser)); }
/** * Returns spatial reference from the JsonParser. * * @param parser * The JSON parser. * @return The spatial reference or null if there is no spatial reference * information, or the parser does not point to an object start. * @throws Exception * if parsing has failed */ public static SpatialReference fromJson(JsonParser parser) throws Exception { return fromJson(new JsonParserReader(parser)); }
public static SpatialReference fromJson(String string) throws Exception { return fromJson(JsonParserReader.createFromString(string)); }
public static SpatialReference fromJson(String string) throws Exception { return fromJson(JsonParserReader.createFromString(string)); }
spatial_reference = SpatialReference.fromJson(parser); } else { if (parser.currentToken() != JsonReader.Token.VALUE_NULL)
spatial_reference = SpatialReference.fromJson(parser); } else { if (parser.currentToken() != JsonReader.Token.VALUE_NULL)