skolodyazhnyy / json-stream

JSON stream reader, writer and parser
MIT License
63 stars 10 forks source link

Reading fails if not all nodes are read #11

Open priitperna opened 7 years ago

priitperna commented 7 years ago

In the example in the readme, if you remove the line $catalog['id'] = $reader->read("catalog");

Then the product structure is not read. Is this intentional?

phaldan commented 6 years ago

Looks intentional for me. I have switched to a similar library with the ability to skip other attributes and only search for a specific attribute: pcrov/JsonReader.