Popularity
6.8
Growing
Activity
5.6
Declining
1,169
48
147

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

Code Quality Rank: L3
Monthly Downloads: 197,489
Programming language: PHP
License: Open Software License 3.0
Latest version: v2.1.0

JsonMapper alternatives and similar libraries

Based on the "Data Structure and Storage" category

Do you think we are missing an alternative of JsonMapper or a related project?

Add another 'Data Structure and Storage' Library