Skip to content

jamestowers/jsonstreamingparser

 
 

Repository files navigation

Streaming JSONL parser for PHP

This is a fork of Salsify's JSON parser - to enable the parsing of jsonl files (Line Delimited JSON) and also json files where there is no root array element.

See Salsify's original repo for more info and usage.

To make it work with no root element json files, i just started the parser stack at 0: $this->stack = [0] instead of $this->stack = []

To make it work with jsonl I added an extra if statement to pick up {s, see: the commit here

About

A JSON streaming parser implementation in PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%