A lightweight pure-janet implementation of json.
Uses builtin PEG engine for parsing, allowing it to fit in a single file less than 100 lines.
By my tests, the parsing performance is about 5 to 10 times slower than the official json
package (written in C).
Unless there is a specific feature you need from this package (or need to avoid native dependencies),
I would please prefer the official json
package.
The prefered method of "installation" is to just copy this project directly into your project.
However, it is also usable as a jpm
package.
You can run jpm install
and it will be installed as pure/janet
module.
The "pure" prefix helps reflect its difference from the regular json
module (and avoids conflicts).
- More flexiblity on encoding (callbacks?)
- Register on official package list
- Support bigints through janet-big?
- Better Error messages?