Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

JSON Stream (Oboe)

wkh237 edited this page Nov 7, 2016 · 6 revisions

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.

Usage

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

Clone this wiki locally