Skip to content

TrueWinter/OrderedJSON

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Installing

npm install --save @truewinter/orderedjson

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published