Excelption #1
Open
opened 3 years ago by Ghost
·
1 comments
Loading…
Reference in new issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Hi I keep getting and error when I parse data in the following format, sadly this comes from a 3rd party API so I cant change it
I dont think it likes the structure with the DATA at the top but im unsure how I can get round it
The error is
PHP Fatal error: Uncaught exception 'JSONStreamException' with message 'unexpected token at offset 0:
Hi. It's interesting that you've found this repo :)
I suspect you copy-pasted the example with enterArray() at the upper level, which is incorrect for objects. Call enterObject() to enter the top-level object, like:
You'll probably want to make multiple enterXXX() calls. For example, call enterArray() in the above example when $k is equal to "Data"...