flat_object
v1.0.1
Published
Flatterns an object
Downloads
12
Readme
flatObject
Simplifies a nested JSON (Flatterns an object)
Usage
- By function call
var flat = require('flat_object');
flat({
a: {
"a": "A",
"b": "B"
},
b: [
"somestring",
key: {
"a": "A",
"b": "B"
}
]
});
- By creating a new class instance
var Flat = require('flat_object').makeFlat;
var flat = new Flat(\*Object*\)