Techcable / janet-json-pure

A pure-janet implementation of JSON parsing (uses builtin PEG)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

janet-json-pure

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.

Installation & Packaging

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).

TODO

  • More flexiblity on encoding (callbacks?)
  • Register on official package list
  • Support bigints through janet-big?
  • Better Error messages?

About

A pure-janet implementation of JSON parsing (uses builtin PEG)

License:Other


Languages

Language:Janet 100.0%