Skip to content

SerializedName not working in geocoder CarmenFeature class #695

@cammace

Description

@cammace

I'm not sure why this is happening but the @SerializedName annotation is supposed to work for both serialization and deserialization but it appears to not work at all. It wasn't noticed until now since we set FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES on the gson object. but if you look at the rawCenter method line, we use @SerializedName("center") but the output when serializing the object is raw_center still. Any ideas on what the issue could be here @zugaldia @tobrun @osana @danesfeder?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions