Description
Takes data retrieved from a JSON web service and converts them
into nested object and arrays - using your own model classes.
Starting from a base object, it maps JSON data on class properties,
converting them into the correct simple types or objects.
It's a bit like the native SOAP parameter mapping PHP's SoapClient
gives you, but for JSON.
Note that it does not rely on any schema, only your class definitions.
Type detection works by parsing @var docblock annotations of
class properties, as well as type hints in setter methods.
You do not have to modify your model classes by adding JSON specific code;
it works automatically by parsing already-existing docblocks.
Keywords: deserialization, hydration
JsonMapper alternatives and similar libraries
Based on the "Data Structure and Storage" category.
Alternatively, view JsonMapper alternatives based on common mentions on social networks and blogs.
-
Serializer
Library for (de-)serializing data of any complexity (supports JSON, and XML) -
Porter
:lipstick: Durable and asynchronous data imports for consuming data at scale and publishing testable SDKs. -
Cake Collection
[READ-ONLY] Collection library in CakePHP. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp -
Hydrator
Class-transformer to transform your data into a typed object -
CRUDlex
CRUDlex is an easy to use CRUD generator for Symfony 4 and Silex 2 which is great for auto generated admin pages -
Zend Serializer
Another library for serialising and de-serialising data (ZF2). -
Array helper
Simple & secure helper to manipulate arrays in various ways
Collect and Analyze Billions of Data Points in Real Time
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of JsonMapper or a related project?