mlg-objectify
v1.0.0
Published
Turns flat objects into nested objects by delimiter
Downloads
1
Readme
MLG Objectify
Creates an object from flat delimited keys. Useful for importing from a spreadsheet or table into a nested structure.
The First level is always to array.
Input
{
"My/1/Key": "Key 1 Value",
"My/2/Key": "Key 2 Value",
"My/2/Stuff": "Stuff 2"
}
Output
{
"My": [
{
"Key": "Key 1 Value"
},
{
"Key": "Key 2 Value",
"Stuff": "Stuff 2"
}
]
}