0.0.1 • Published 2 years ago

@truewinter/orderedjson v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.

0.0.1

2 years ago