forked from joltup/rn-fetch-blob
-
Notifications
You must be signed in to change notification settings - Fork 135
JSON Stream (Oboe)
Ron Radtke edited this page Feb 5, 2022
·
1 revision
After 0.10.0
, our library supports JSON stream
, it's a wrapper of Oboe which created by @jimhigson. Generally you can create a JSON stream from a file
or HTTP(S)
address.
const JSONStream = RNFetchBlob.JSONStream
// from remote JSON
JSONStream('http://example.com/large-json.json')
.node('*', () => { /* handle node */ })
.fail((err) => { /* handling error */ })
// from file system
JSONStream(RNFetchBlob.wrap('/path/to/a/json/file.json'))
.node('*', () => { /* handle node */ })
.fail((err) => { /* handling error */ })
See Oboe.js