? Go to index
In some edge-cases a property name in the json can vary:
[ {"first name": "Foo"}, {"first*name": "Bar"}, {"first-name": "Baz"}, {"first_name": "FooBarBaz"} ]
In this case you can add multiple @JsonField annotations for a property.
@JsonField
class CrappySourceData { / * @JsonField(name="first name") @JsonField(name="firstname") * @JsonField(name="first-name") * @JsonField(name="first_name") */ public $firstName; }
info at phpclasses dot org