Registry / serialization / apimatic-jsonmapper

apimatic-jsonmapper

JSON →
library3.1.7phppackagistunverified

Map nested JSON structures onto PHP classes

composer require apimatic/jsonmapper
INSTALL
IMPORT
SIG · APIMATIC-JSONMAPPE
A
apimatic-jsonmapper
serializationphpv3.1.7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JsonMapper
use apimatic\jsonmapper\JsonMapper;

Map JSON data to a PHP object

use apimatic\jsonmapper\JsonMapper; $mapper = new JsonMapper(); $object = $mapper->map(json_decode($json), new MyClass());
Debug
Known issues
gotchaDoes not handle circular references by default
fix
Set JsonMapper::bEnforceMapType = false or use custom handlers
affects: >=3.0.0
Upgrade
Version history
3.1.7latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
2
Meta
1
Resources
apimatic-jsonmapper — pip install apimatic-jsonmapper · libregistry