spyrmp/json-serializer-deserializer

Serialize php arrays to json. Deserialize json to php arrays.

v1.0.0 2022-01-12 12:00 UTC

This package is auto-updated.

Last update: 2024-05-12 21:29:53 UTC


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"}');