json-machine icon indicating copy to clipboard operation
json-machine copied to clipboard

Efficient, easy-to-use, and fast PHP JSON stream parser

Results 23 json-machine issues
Sort by recently updated
recently updated
newest added

Hey @halaxa! Long time since [our last PR](https://github.com/halaxa/json-machine/pull/47)! 😄 Your package keeps improving, I love the support for multiple JSON pointers ❤️ While updating [my package](https://github.com/cerbero90/lazy-json) (based on yours), I...

Hello, can you tell me how to avoid this: ``` 2022-05-31T21:19:57+00:00 [info] User Deprecated: Method "IteratorAggregate::getIterator()" might add "\Traversable" as a native return type declaration in the future. Do the...

Hello there, 1. I have a problem where I need to iterate through the JSON multiple times. If I start the second iteration attempt I get the following error: Fatal...

Hello! I have a problem to using wildcard pointer `/results/-/color` like in example from root documentation: as result I receive only 1st iteration and second is not available through the...

Please let me know by reactions/voting or comments if a CLI version of JSON Machine would be useful to have. Thanks. `jm` command would take a JSON stream from `stdin`,...

enhancement

Support to incrementally feed the parser via an explicit method call where the pull approach of foreach cannot be used. Useful for example for curl's `CURLOPT_WRITEFUNCTION` or when receiving json...

enhancement

Enable iteration inside iteration to lazily iterate any structure. ```php foreach (RecursiveJsonMachine::fromFile('universe.json', '/results') as $gallaxy) { foreach($gallaxy as $solarSystem) { foreach($solarSystem as $solarSystemObject) { // process star, planet, asteroid ......

enhancement

Hi guys, the memory usage is awesome but the cpu-time is ~100x compared to json_decode (100MB json with 10000 entries). Did you consider using a c-extension for the tokenizing/parsing? Never...

enhancement

When calling fromFile on a wrong file format I get some uncatchable errors. I had this issue with both 0.7.0 and 1.1.1 \JsonMachine\JsonMachine::fromFile($filename, "/myattribute"); I get the following fatal error...

Hi! ## The Problem - My `Decoder::decode(StreamInterface $stream): iterable` layer is configured with JSON pointers for use with JSON Machine. In the subject case, it is configured with an all-matching...