PHPackages                             markup/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. markup/json

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

markup/json
===========

Json wrapper to provide a more robust Api (matching 7.3 where possible)

0.1.3(7y ago)329.6k↓100%1[1 PRs](https://github.com/usemarkup/json/pulls)MITPHPPHP ^7.1CI failing

Since Jun 13Pushed 6y ago5 watchersCompare

[ Source](https://github.com/usemarkup/json)[ Packagist](https://packagist.org/packages/markup/json)[ RSS](/packages/markup-json/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

Json
====

[](#json)

[![Build Status](https://camo.githubusercontent.com/1f1c8cec4e40e7f9e5302ff35c0c242984c8603b4729d49b2d63a9666349a473/68747470733a2f2f7472617669732d63692e6f72672f7573656d61726b75702f6a736f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/usemarkup/json)

Json wrapper to provide a more robust API matching PHP 7.3 with exceptions rather than errors.

The following json options are always used

- JSON\_UNESCAPED\_UNICODE
- JSON\_BIGINT\_AS\_STRING
- JSON\_THROW\_ON\_ERROR

Usage
-----

[](#usage)

```
try {
    $json = '{"a":1}';
    $data = Encoder::decode($json);

    $json = Encoder::encode($data);
} catch (\JsonException $exception) {
    echo $exception->getMessage(); // echoes "Syntax error"
}
```

Reference
---------

[](#reference)

- [https://wiki.php.net/rfc/json\_throw\_on\_error](https://wiki.php.net/rfc/json_throw_on_error)
-
-

Similar Packages
----------------

[](#similar-packages)

-
-
-

###  Health Score

31

—

LowBetter than 70% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~86 days

Total

4

Last Release

2580d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/baa6c222b01edf945aa4e5e362583bac91f303c2a620d8774a9a5a742ade8e07?d=identicon)[gsdev](/maintainers/gsdev)

---

Top Contributors

[![gsdevme](https://avatars.githubusercontent.com/u/319498?v=4)](https://github.com/gsdevme "gsdevme (9 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (2 commits)")[![alexeyshockov](https://avatars.githubusercontent.com/u/203120?v=4)](https://github.com/alexeyshockov "alexeyshockov (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/markup-json/health.svg)

```
[![Health](https://phpackages.com/badges/markup-json/health.svg)](https://phpackages.com/packages/markup-json)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
