PHPackages                             unional/jsonc - 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. unional/jsonc

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

unional/jsonc
=============

jsonc library

v1.0.1(5y ago)3463[1 PRs](https://github.com/unional/jsonc-php/pulls)MITPHP

Since Feb 21Pushed 1y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (11)Used By (0)

jsonc-php
=========

[](#jsonc-php)

[![Latest Stable Version](https://camo.githubusercontent.com/aeb7dbb9df51b557cd3010fdacf332be055d5a80e301f864a95cbc3ca8680ef2/68747470733a2f2f706f7365722e707567782e6f72672f756e696f6e616c2f6a736f6e632f76)](//packagist.org/packages/unional/jsonc) [![Total Downloads](https://camo.githubusercontent.com/a1ef0aa3fc95558c43faa8f56eac047dee951c8305c7f492667f943e9288113b/68747470733a2f2f706f7365722e707567782e6f72672f756e696f6e616c2f6a736f6e632f646f776e6c6f616473)](//packagist.org/packages/unional/jsonc) [![Latest Unstable Version](https://camo.githubusercontent.com/e47c5f95342a6cb5e3e40b7d403fca47465e5f3302d1e00fee3598533dc0e844/68747470733a2f2f706f7365722e707567782e6f72672f756e696f6e616c2f6a736f6e632f762f756e737461626c65)](//packagist.org/packages/unional/jsonc) [![License](https://camo.githubusercontent.com/7f227768cad98a09152de59308563de1d3ddf63e8b230083eb2e61ff5e0ef8ea/68747470733a2f2f706f7365722e707567782e6f72672f756e696f6e616c2f6a736f6e632f6c6963656e7365)](//packagist.org/packages/unional/jsonc)

PHP jsonc support.

install
-------

[](#install)

```
composer require unional/jsonc
```

usage
-----

[](#usage)

```
use Unional\Jsonc\JSONC;

print_r(JSONC::decode('{ /* comment */"a": 1 }'));
```

Attribution
-----------

[](#attribution)

The solution in this package is using the implementation made by Alexander Shostak in [stackoverflow](https://stackoverflow.com/questions/8148797/a-json-parser-for-php-that-supports-comments/43439966?noredirect=1#comment117253234_43439966).

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance30

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

8

Last Release

1910d ago

Major Versions

v0.0.6 → v1.0.02021-02-22

### Community

Maintainers

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

---

Top Contributors

[![unional](https://avatars.githubusercontent.com/u/3254987?v=4)](https://github.com/unional "unional (18 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/unional-jsonc/health.svg)

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

###  Alternatives

[richardhj/contao-backup-manager

Wrapper extension for backup-manager.

1412.9k](/packages/richardhj-contao-backup-manager)

PHPackages © 2026

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