2.1.4 • Published 10 years ago

ajon v2.1.4

Weekly downloads
4
License
MIT
Repository
github
Last release
10 years ago

ajon

More Accurate Than JSON

It may be a problem for some projects (including rhaboo) that JSON mangles arrays: non-numerically named properties are discarded and nulls are filled into all the sparse positions (wheras JS objects in memory can distinguish between property values of null, undefined and deleted.)

This module provides stringify(object) and parse(string) analogous to JSON such that arrays are preserved properly.

There's no attempt to deal with prototypes or function-valued properties. Regexes are not dealt with yet but could be.

The serialised notation is not pretty enough to read for pleasure, and there are no customisation options. It's only intended for computers to read.

It's not known how ajon.parse reacts to strings that were not generated with ajon.stringify, therefore it's not known to be secure enough to use over a network. Feel free to fork it into a version that claims to be secure.

Install with npm install ajon and include with <script src='node_modules/ajon/src/ajon.js'></script>

2.1.4

10 years ago

2.1.3

10 years ago

2.1.2

10 years ago

2.1.1

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago