PHPackages                             kherge/json - 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. kherge/json

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

kherge/json
===========

Encodes, decodes, and validates JSON data.

3.0.1(6y ago)61226.6k↓10.8%126MITPHPPHP &gt;=7.3

Since Mar 8Pushed 6y ago3 watchersCompare

[ Source](https://github.com/kherge/php.json)[ Packagist](https://packagist.org/packages/kherge/json)[ RSS](/packages/kherge-json/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (12)Used By (6)

[![Build Status](https://camo.githubusercontent.com/f95919dfff4c42b29f08e1f922293d5b77bf0d980f9f80c9ea280384c8caa2c5/68747470733a2f2f7472617669732d63692e6f72672f6b68657267652f7068702e6a736f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/kherge/php.json)[![Packagist](https://camo.githubusercontent.com/54b5a4143d95a6aea45cfa82a443ad01e69f7c75897f1f7ea61052a3fc337b7d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b68657267652f6a736f6e2e737667)](https://packagist.org/packages/kherge/json)[![Packagist Pre Release](https://camo.githubusercontent.com/ab3b0f5964f4175d336775dbc36334779eee0b615ac166232501ca4713ec5aab/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6b68657267652f6a736f6e2e737667)](https://packagist.org/packages/kherge/json)

JSON
====

[](#json)

A library for encoding, decoding, linting, and validating JSON data.

This library provides a simplified interface into existing functionality that is provided by PHP's `json` extension, `justinrainbow/json-schema`, and also `seld/jsonlint`. The purpose is to make it easy to use while making it hard to miss errors.

Usage
-----

[](#usage)

```
