An open API service indexing awesome lists of open source software.

https://github.com/schveiguy/jsoniopipe

iopipe-based JSON parsing library
https://github.com/schveiguy/jsoniopipe

Last synced: 3 months ago
JSON representation

iopipe-based JSON parsing library

Awesome Lists containing this project

README

        

# JSON parsing/serialization library for iopipe

This library allows parsing/serializing JSON using the [iopipe](https://github.com/schveiguy/iopipe) library. At the moment, the library itself is quite functional, but the documentation is sorely lacking (for now).

Look in the parser module for raw data parsing. Everything else is built on top of this.

The dom module contains `JSONValue`, which is a JSON specific object for containing a JSON tree's data. It also has functions to convert a JSON stream to `JSONValue` items.

The serialize module contains functions to serialize and deserialize custom types to and from a text iopipe in JSON format.

Look for the documentation to be filled out in the near future, and some more functionality to be added as needed.

## JSON5 support

The library now supports JSON5 parsing and deserialization! If you want to read more about JSON5, it is here: https://json5.org/

Quick differences:
* comments are allowed
* hex numbers
* no need to quote member names
* single-quote strings are allowed
* trailing commas are allowed