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

ActiveLibrary

goma/goma-json-lib
==================

Goma JSON Lib provides Exception handling for JSON encode and decode. It has a workaround for non-utf8 values.

01.7kPHP

Since Oct 20Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gomaframework/JSON-Lib)[ Packagist](https://packagist.org/packages/goma/goma-json-lib)[ RSS](/packages/goma-goma-json-lib/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Goma JSON Lib
=============

[](#goma-json-lib)

Goma JSON Lib provides Exception handling for JSON encode and decode. It has a workaround for non-utf8 values.

Methods
-------

[](#methods)

- **JSON::encode( mixed $value \[\[, int $options = 0 \[, int $depth = 512 \]\], bool $throwNonUtf8 = false\])** - encodes data. If utf8 error is thrown, it tries a workaround. For every other kind of error JSONException is thrown.
- **JSON::decode(string $json \[, bool $assoc = false \[, int $depth = 512 \[, int $options = 0 \]\]\])** - decodes an json string. Throws JSONException in case of a problem.

JSONException
-------------

[](#jsonexception)

The code of the JSONException is the same as json\_last\_error(). Message is json\_last\_error\_msg().

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f770f7ce9e7cb8a9261d408a6d70eaa86e96eab3419e7b49cce95bb7f2e556f?d=identicon)[daniel.gruber](/maintainers/daniel.gruber)

### Embed Badge

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

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

PHPackages © 2026

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