PHPackages                             basemax/jpophp - 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. basemax/jpophp

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

basemax/jpophp
==============

JPOPHP (JSON Parser Object PHP) is a library for parsing the data in JSON format.

v2.2.1(7y ago)273356GPL-3.0-or-laterPHP

Since Apr 1Pushed 7y ago2 watchersCompare

[ Source](https://github.com/BaseMax/JPOPHP)[ Packagist](https://packagist.org/packages/basemax/jpophp)[ Docs](https://github.com/BaseMax/JsonParser)[ RSS](/packages/basemax-jpophp/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

JPOPHP (Json Parser Object PHP)
===============================

[](#jpophp-json-parser-object-php)

Json Parser Object PHP
----------------------

[](#json-parser-object-php)

**Tiny Library for parse JSON.**

JPOPHP (PHPJsonParser) can encode and decode data in JSON format.

We provides a pure PHP solution to take a value and generates a string that represents that value in JSON format.

The package can also take a JSON encoded string and decodes it to retrieve the original data value.

[![JsonParser.php File Size](https://camo.githubusercontent.com/b8f98a23ccbbfbe69d703676855c81ff8d2fe97af6783f27ac5dff3582628d93/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c69627261727925323053697a652d32362e302532304b422d626c75652e737667)](https://camo.githubusercontent.com/b8f98a23ccbbfbe69d703676855c81ff8d2fe97af6783f27ac5dff3582628d93/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c69627261727925323053697a652d32362e302532304b422d626c75652e737667)[![JsonParser.min.php File Size](https://camo.githubusercontent.com/e42005a0bf2a4f368704dc8e7df01761733265af119883ab5a9fbf5c7d2cad31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d7072657373656425323053697a652d31302e332532304b422d626c75652e737667)](https://camo.githubusercontent.com/e42005a0bf2a4f368704dc8e7df01761733265af119883ab5a9fbf5c7d2cad31/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f6d7072657373656425323053697a652d31302e332532304b422d626c75652e737667)[![JsonParser.php Validation Code](https://camo.githubusercontent.com/b7eb8a3a45a3986d466bd36106b01a4915d99517a94b1dbe117113ad692e8801/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56616c69646174696f6e253230436f64652d4e6f2532304572726f722d677265656e2e737667)](https://camo.githubusercontent.com/b7eb8a3a45a3986d466bd36106b01a4915d99517a94b1dbe117113ad692e8801/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56616c69646174696f6e253230436f64652d4e6f2532304572726f722d677265656e2e737667)

JPOPHP Features
---------------

[](#jpophp-features)

- Small and light library
- Hand-coded scanner
- Analyze and found Errors
- Unicode Support
- No dependencies (only suitable version of the `PHP`)
- Written and run on `PHP 7.2.6`, `PHP 7.3.4`

Type of supported values
------------------------

[](#type-of-supported-values)

- Integer
- Float
- Boolean (`true` , `false`)
- Null
- String
- Char (Now this is same as a string)
- Sub Array
- Sub Object

JPOPHP TODO
-----------

[](#jpophp-todo)

- Improve speed and performance (Speed does not reach `C Language`!)

Usage
-----

[](#usage)

All public functions are accessible through the `$json` variable.

- `array $json->decode(string);`
- `string $json->encode(array);`

Samples
-------

[](#samples)

To view the full details, run the [Example.php](https://github.com/BaseMax/JsonParser/blob/master/Example.php) file.

JSON Grammar
------------

[](#json-grammar)

You can check the **[JSONGrammar.txt](https://github.com/BaseMax/JsonParser/blob/master/JSONGrammar.txt)** file to view the JSON standard grammar.

JPO-PHP Performance
-------------------

[](#jpo-php-performance)

Competition between `json_encode(...)` and `$json->encode(...)`

The basic PHP functions are written in C itself.

Do not expect to reach it quickly.

However, there is always way for improvement.

JPO PHP History
---------------

[](#jpo-php-history)

- **Version 1.0 (first)** : 2018-06-26 - 2018-06-26
- **Version 2.1** : 2018-06-27 - 2019-03-13
- **Version 2.2** : 2019-03-25 - 2019-04-03
- **Version 2.2.1** : 2019-04-04

License
=======

[](#license)

JsonParser (PHP JSON Parser) is licensed under the [GNU General Public License](https://github.com/BaseMax/JsonParser/blob/master/LICENSE).

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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 ~2 days

Total

2

Last Release

2690d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7fc51a7f7147d288fc1f18aa54db552879fd0a88d214c0059c40c466d2f681e3?d=identicon)[BaseMax](/maintainers/BaseMax)

---

Top Contributors

[![BaseMax](https://avatars.githubusercontent.com/u/2658040?v=4)](https://github.com/BaseMax "BaseMax (115 commits)")

---

Tags

jsonjson-parserjson-parsingjson-parsing-libraryjson-serializationlexerparserparsersphpphp-5php-7php-json-libraryphp-json-parserphp-librarytokentoken-authenticationtoken-autheticationtoken-authorizationtokenizertokensjsonparserlexer

### Embed Badge

![Health badge](/badges/basemax-jpophp/health.svg)

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

###  Alternatives

[doctrine/lexer

PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.

11.2k980.3M171](/packages/doctrine-lexer)[cerbero/json-parser

Zero-dependencies pull parser to read large JSON from any source in a memory-efficient way.

807629.0k6](/packages/cerbero-json-parser)[salsify/json-streaming-parser

A streaming parser for JSON in PHP.

7787.2M22](/packages/salsify-json-streaming-parser)[pcrov/jsonreader

JSON Pull Parser

1461.4M7](/packages/pcrov-jsonreader)[creof/geo-parser

Parser for geography coordinate strings

614.6M15](/packages/creof-geo-parser)[creof/wkt-parser

Parser for well-known text (WKT) object strings

545.0M16](/packages/creof-wkt-parser)

PHPackages © 2026

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