jsonmapper
jsonmapper copied to clipboard
Map nested JSON structures onto PHP classes
I used the following syntax in my PHP class: `/** @var ?int */` Which gave me the following error: `Class '?int' not found` I changed it to the following, which...
The default setting is to be strict about NULL values if they are not allowed: ```php /** * Throw an exception, if null value is found * but the type...
This PR fixes issue introduced by PR #197. PR #197 replaced `ArrayObject` check with more broad `ArrayAccess`, thus breaking BC. This PR added additional check for `Traversable` to make sure...
this created some security issues in my projects. Might be worth having createInstance() check if the object in question has any @required properties. In the second case, the model's @required...
If JsonMapper can't be relied on for JSON validation during mapping, it should be clearly documented so that no one tries to rely on the library for data validation. All...
Adds support for strict flat type mapping via $bStrictFlatTypes
Hi, In the current state, the mapping of DateTime type is not very intuitive: it's a common json/php type but it's not clear how to make use of it in...