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

Hello, I am wondering whether is it possible to to parse nested values in objects using json machine. The manual describe Parsing nested values in arrays using the `-` in...

This is the first (at least publicly available 😁) working iteration of _jsonmachine_ php extension. Its primary goal for the time being is to accelerate the most called PHP code...

Let's say we have a property with an array of dynamically-typed, user-provided parameters. ```php $options = ['pointer' => '/user-provided-parameters/-']; Items::fromString('{"user-provided-parameters": [1,2,3]}', $options); // Expected: [1,2,3] // Actual: same Items::fromString('{"user-provided-parameters": [1,false,null]}',...

//fruitsArray.json { "results": [ { "name": "apple", "color": "red" }, { "name": "pear", "color": "yellow" } ] } //code $fruits = Items::fromFile('fruitsArray.json', ['pointer' => '/results/-/color']); foreach ($fruits as $key =>...

I couldn't figure out how to start iterating items from specific position. If I have a huge json file and at some point something goes wrong, how to continue process...

Hi. I have a weird issue with this library...maybe i'm doing something wrong, but in short: - i'm downloading a large json file with CURLOPT_FILE set to php://temp (w+) -...

@halaxa asked me to start a new thread stemming from the discussion at https://github.com/halaxa/json-machine/issues/73 Hopefully the script described below, which I'll call jm, will provide a basis for discussion or...

enhancement

@halaxa Imports are always absolute.

When combining a pointer to a list and a pointer to a scalar value, and the scalar is after the list (does not happen when scalar before list!), then the...

Hi! I'm working with [GeoJSON](https://fr.wikipedia.org/wiki/GeoJSON) large files. An example of entry: ```json { "type":"FeatureCollection", "features":[ { "type":"Feature", "id":"500410000A0055", "geometry":{ "type":"Polygon", "coordinates":[ [ [ -1.8556355, 49.6650877 ], [ -1.8556206, 49.6650552 ],...