spyrmp / json-serializer-deserializer
Serialize php arrays to json. Deserialize json to php arrays.
v1.0.0
2022-01-12 12:00 UTC
Requires
- php: >=7.0.0
- ext-json: *
Requires (Dev)
- phpunit/phpunit: 9.5.*
- symfony/var-dumper: ^5.4
README
This library is serializing simple php arrays to json string also deserialize json to php arrays
Install
This project can be installed via Composer run the following command:
composer require spyrmp/json-serializer-deserializer
Usage
$json = \Spyrmp\JsonSerializerDeserializer\Json::serialize(["name" => "test_name", "lastname" => "test_lastname"]); $deserializedJson = \Spyrmp\JsonSerializerDeserializer\Json::deserialize('{"name":"test_name","lastname":"test_lastname"}');