2017 © Pedro Peláez
 

library json-char-input-reader

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

image

janeklb/json-char-input-reader

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

  • Friday, May 22, 2015
  • by janeklb
  • Repository
  • 1 Watchers
  • 21 Stars
  • 19,205 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 4 Versions
  • 2 % Grown

The README.md

janeklb\json\JSONCharInputReader

This is a stream reader used to process JSON data character-by-character and execute callbacks after parsing complete chunks., (*1)

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

Example

To get a feel for it, run the following in your terminal:, (*3)

$ cat | php example/example.php

[Terminate with CTRL^D or CTRL^C], (*4)

Testing

Install composer with dev dependencies composer install --dev and run, (*5)

$ ./vendor/bin/phpunit test/

Todo

  • fire callbacks on deeper nested values, rather than "top level" entries in the stream array

License

Distributed under the MIT Licence, (*6)

The Versions

22/05 2015

dev-master

9999999-dev

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

  Sources   Download

MIT

The Development Requires

by Janek Lasocki-Biczysko

parser json stream reader chunk

21/05 2015

v0.3.2

0.3.2.0

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

  Sources   Download

MIT

The Development Requires

by Janek Lasocki-Biczysko

json stream reader chunk

25/03 2013

v0.3.1

0.3.1.0

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

  Sources   Download

MIT

The Development Requires

by Janek Lasocki-Biczysko

json stream reader chunk

18/03 2013

v0.3

0.3.0.0

Read a JSON stream and execute callbacks whenever complete JSON chunks are parsed

  Sources   Download

MIT

The Development Requires

by Janek Lasocki-Biczysko

json stream reader chunk