PHPackages                             kingson-de/marshal-json-serializer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. kingson-de/marshal-json-serializer

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

kingson-de/marshal-json-serializer
==================================

Marshal JSON is serializing / marshalling data structures to JSON. It is also deserializing / unmarshalling JSON back to the data structures.

v1.1.0(7y ago)023Apache-2.0PHPPHP ^7.0

Since Dec 19Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Kingson-de/marshal-json-serializer)[ Packagist](https://packagist.org/packages/kingson-de/marshal-json-serializer)[ RSS](/packages/kingson-de-marshal-json-serializer/feed)WikiDiscussions master Synced yesterday

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

Marshal JSON Serializer
=======================

[](#marshal-json-serializer)

[![Marshal Serializer logo](https://raw.githubusercontent.com/Kingson-de/marshal-serializer/master/marshal.png "Marshal Serializer")](https://raw.githubusercontent.com/Kingson-de/marshal-serializer/master/marshal.png)

[![License](https://camo.githubusercontent.com/a549a7a30bacba7bfceebdc207a8e86c3f2c02995a2527640dca30048fd2b64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d417061636865253230322e302d626c75652e737667)](https://github.com/Kingson-de/marshal-json-serializer/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/64a03c994ba1a82e33ee24fac1f3012c8c02ef3874b1381e38ca463a0adef867/68747470733a2f2f7472617669732d63692e6f72672f4b696e67736f6e2d64652f6d61727368616c2d6a736f6e2d73657269616c697a65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Kingson-de/marshal-json-serializer)[![Code Coverage](https://camo.githubusercontent.com/dd9183f2c3e138a96a97d1b28ff5de0a48f1963f93bed95f8abb3b32218316ad/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b696e67736f6e2d64652f6d61727368616c2d6a736f6e2d73657269616c697a65722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Kingson-de/marshal-json-serializer/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/445c8605ba2f493a9b8efc3fbd91b5bb5fa3e7943a877ab21abc14e61bdab169/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4b696e67736f6e2d64652f6d61727368616c2d6a736f6e2d73657269616c697a65722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/Kingson-de/marshal-json-serializer/?branch=master)

Introduction
------------

[](#introduction)

Marshal JSON is [serializing](https://en.wikipedia.org/wiki/Serialization) / [marshalling](https://en.wikipedia.org/wiki/Marshalling_(computer_science)) data structures to JSON. It is also deserializing / unmarshalling JSON back to the data structures.

Installation
------------

[](#installation)

Easiest way to install the library is via composer:

```
composer require kingson-de/marshal-json-serializer

```

The following PHP versions are supported:

- PHP 7.0
- PHP 7.1
- PHP 7.2
- PHP 7.3

Execute tests
-------------

[](#execute-tests)

Just run:

```
composer test

```

Or without code coverage:

```
composer quicktest

```

Usage
-----

[](#usage)

### How to create Data Structures which can be serialized?

[](#how-to-create-data-structures-which-can-be-serialized)

Please check the [Marshal Serializer README](https://github.com/Kingson-de/marshal-serializer/blob/master/README.md) for more information.

### How to use the Marshal JSON Serializer library?

[](#how-to-use-the-marshal-json-serializer-library)

The library provides several static methods to create your JSON data once you defined the data structures.

```
