1.0.0 • Published 7 years ago

mlg-objectify v1.0.0

Weekly downloads
-
License
ISC
Repository
bitbucket
Last release
7 years ago

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"
    }
  ]
}
1.0.0

7 years ago