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
- Host: GitHub
- URL: https://github.com/schveiguy/jsoniopipe
- Owner: schveiguy
- Created: 2017-05-06T19:49:12.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-13T15:43:13.000Z (3 months ago)
- Last Synced: 2025-03-13T16:35:47.655Z (3 months ago)
- Language: D
- Size: 107 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
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