jimhigson / oboe.js

A streaming approach to JSON. Oboe.js speeds up web applications by providing parsed objects before the response completes.
http://jimhigson.github.io/oboe.js-website/index.html
Other
4.79k stars 208 forks source link

Parsing error #210

Closed Epick362 closed 4 years ago

Epick362 commented 4 years ago

Hello, I am encountering an error while trying to parse this valid JSON file: https://api.jsonbin.io/b/5e443b349c65d21641aa84d6

Code:

Oboe("https://api.jsonbin.io/b/5e443b349c65d21641aa84d6")
          .node("!.data.*", (feature: DatabaseFeature) => {
            console.tron.log(`Recieved chunk from file ${exportFile.file.filename}`, feature)
          })
          .done(resolve)
          .fail(reject)
Error: Bad object
Ln: 1
Col: 3776
Chr: i

Oboe.js version 2.1.5

Any help would be very much appreciated. Thank you.

Epick362 commented 4 years ago

It seems the error was somewhere on my end. Closing this.