【文件属性】:
文件名称:JSONCharInputReader:逐个字符读取和处理 JSON 数据流
文件大小:7KB
文件格式:ZIP
更新时间:2021-06-04 16:25:41
PHP
janeklb\json\JSONCharInputReader
这是一个流读取器,用于逐个字符处理 JSON 数据并在解析完整块后执行回调。
数据流必须采用 JSON 数组的形式。 IE。 [1, 2, [3, 4], {"five": "six"}, ...
例子
要了解它,请在终端中运行以下命令:
$ cat | php example/example.php
[以 CTRL^D 或 CTRL^C 终止]
测试
使用 dev 依赖项composer install --dev并运行
$ ./vendor/bin/phpunit test/
去做
在更深的嵌套值上触发回调,而不是流数组中的“*”条目
执照
在下
【文件预览】:
JSONCharInputReader-master
----src()
--------janeklb()
----example()
--------example.php(891B)
----LICENSE(1KB)
----test()
--------suite.php(200B)
--------test.php(3KB)
----README.md(734B)
----.gitignore(46B)
----composer.json(545B)