odgn-json

a through pull-stream that converts strings into objects and arrays

Usage no npm install needed!

<script type="module">
  import odgnJson from 'https://cdn.skypack.dev/odgn-json';
</script>

README

odgn-json

An through pull-stream that converts incoming string data into a stream of JSON objects and arrays - concatenated JSON.

Because the world needs more JSON parsers.

Usage

import { parse } from 'odgn-json';

const src = `{
    # TL;DR
    fancy:   odgn-json
    machine: JSON
}`;

const result = parse(src);


Related

https://en.wikipedia.org/wiki/JSON_Streaming

https://github.com/chrisdickinson/json-parse-stream

https://github.com/dominictarr/JSONStream

https://github.com/indutny/json-depth-stream

https://github.com/creationix/jsonparse

https://github.com/pull-stream/pull-stream/blob/master/docs/spec.md