- Added support for multiple
@JsonField
-Annotations to support multiple, different property names - Simple mapping method added. You only need to add
@JsonField()
if the property in json and the class property equals
Transformers implemented
preTransformer
, transformer
and postTransformer
in @JsonField
-Annotation implemented
For details, take a look on tests/Objects/Autobot.php
TypeMismatchException
contains now the name of the property- Redundant method calls simplified
Object to JSON conversion added
Use theobjectToJson()
-Method to convert an object back to JSON
Multiple primitive types are now supported
Possible values: primitive|FQCN
, primitive|primitive|primitive
, primitive|primitive|FQCN
Example: string|integer|My\Class
, string|int|datetime
NOT SUPPORTED: My\Class|Another\Class
, My\Class|string
- Additional Date Format added
Date and DateTime Type added
Supports the following formats
- 2017-09-09
- 2017-09-09 13:20:59
- 2017-09-09T13:20:59
- 2017-09-09T13:20:59.511Z
- 2017-09-09T13:20:59-02:00
and of course Unix-Timestamps
- ParseError replaced with InvalidJsonException to keep PHP5 compatibility
- The JsonField-Annotation property "type" supports now escaped FQCNs
- Travis-CI support added
- Initial Release