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

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

tdt/json
========

Reads a json stream memory efficiently.

v1.0.1(12y ago)31.9k1AGPLv3PHP

Since Jan 24Pushed 12y ago5 watchersCompare

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

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

tdt/json
========

[](#tdtjson)

JSONCharInputReader processes JSON data streams character-by-character

The data stream *must* be in the form of a JSON array (atm). ie. \[1, 2, \[3, 4\], {"five": "six"}, ...

examples
========

[](#examples)

To run the examples/example.php execute the following in your terminal:

```
$ cd examples
$ cat | php example.php
```

Testing //todo
==============

[](#testing-todo)

We have a few tests in the tests directory. You can run them as follows if you have phpunit installed:

```
$ phpunit tests/
```

Or you can watch our travis-ci.org page when you have pushed to this repository.

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~454 days

Total

2

Last Release

4407d ago

### Community

Maintainers

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

---

Top Contributors

[![coreation](https://avatars.githubusercontent.com/u/361244?v=4)](https://github.com/coreation "coreation (1 commits)")[![pietercolpaert](https://avatars.githubusercontent.com/u/347073?v=4)](https://github.com/pietercolpaert "pietercolpaert (1 commits)")

---

Tags

streamjsonBufferchunk

### Embed Badge

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

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

###  Alternatives

[justinrainbow/json-schema

A library to validate a json schema.

3.6k316.9M612](/packages/justinrainbow-json-schema)[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[jms/serializer

Library for (de-)serializing data of any complexity; supports XML, and JSON.

2.3k135.8M851](/packages/jms-serializer)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[colinodell/json5

UTF-8 compatible JSON5 parser for PHP

30422.2M45](/packages/colinodell-json5)[clue/ndjson-react

Streaming newline-delimited JSON (NDJSON) parser and encoder for ReactPHP.

15467.7M16](/packages/clue-ndjson-react)

PHPackages © 2026

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