Skip to content

Instantly share code, notes, and snippets.

@FauxFaux
Created October 10, 2019 06:33
Show Gist options
  • Save FauxFaux/08302e34302a5d10bbb4e53464943584 to your computer and use it in GitHub Desktop.
Save FauxFaux/08302e34302a5d10bbb4e53464943584 to your computer and use it in GitHub Desktop.
toml table unnesting
[[products]]
name = "potato"
available = true
[products.shelf]
row = 7
column = 12
[[products]]
name = "tomato"
available = true
shelf = { row = 2, column = 15 }
{
"products": [
{
"available": true,
"name": "potato",
"shelf": {
"column": 12,
"row": 7
}
},
{
"available": true,
"name": "tomato",
"shelf": {
"column": 15,
"row": 2
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment