json-to-keys
v1.0.1
Published
A simple package that convert a JSON object to an object that contains it's keys
Downloads
1
Readme
JSON-TO-KEYS
Installation: "npm i json-to-keys"
A simple JS package that convert a JSON object to a KEY-PATH object
Example:
{
"info": {
"first_name": "Nam",
"last_name": "Nguyen"
},
"role": "dev"
}
will generate
{
info: {
first_name: "info.first_name",
last_name: "info.last_name"
},
role: "role"
}