jsonmapper icon indicating copy to clipboard operation
jsonmapper copied to clipboard

Map nested JSON structures onto PHP classes

Results 15 jsonmapper issues
Sort by recently updated
recently updated
newest added

When working on #219 I noticed that .gitattributes wasn't updated since 2017 and some of the files listed don't exist anymore. Also, some new files that are not needed in...

I created an object with a property with type 'mixed', as is possible since PHP 8.0. Unfortunately, this doesn't work, despite various checks in the code for `$type === 'mixed'`....

This pull request aims to address the need for accessing supplementary data within the post mapping method by introducing a new feature - `postMappingMethodArguments`. This enhancement allows users to pass...

It would be nice to have the possibility to access further data inside the defined `postMappingMethod`. What do you think about a `postMappingMethodArguments` that accepts an array of values that...

I am trying to map a JSON exported from MyBusiness (GBP) API. I am getting this error: ``` Indirect modification of overloaded property Google\Service\MyBusinessBusinessInformation\Categories::$additionalCategories has no effect ``` Stack trace:...

this behaviour is completely unexpected, and no static analyzer would spot it. null ought to be treated like all other simple types.

The is an extension of JsonMapper for Php 8 to include constructor property promotion with array and associated annotation. Starting from php 8 version there is constructor property promotion. The...

Today the classMap function does not pass on the parent json array. This makes it impossible to make a change due to a specific value in the parent. A feature...

enhancement
help wanted

Use assertSame to validate both type and value in one step. Use assertCount to check number of array elements. Use assertContainsOnly(InstanceOf) to check type of array elements. Tiny cleanup for...