@truewinter/orderedjson

0.0.1 • Public • Published

OrderedJSON

As the name suggests, OrderedJSON keeps the order in which key-value pairs were added. This is important for use-cases such as hashing or signing a JSON object.

Usage

var json = new OrderedJSON();
json.add('test', 'testing');
json.add('1234', 5678);

console.log(json.getJSON());

Imporant: Only the following value types are supported: string, number, boolean, array, JSON, OrderedJSON.

Readme

Keywords

none

Package Sidebar

Install

npm i @truewinter/orderedjson

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

4.38 kB

Total Files

5

Last publish

Collaborators

  • truewinter