Created
October 10, 2019 06:33
-
-
Save FauxFaux/08302e34302a5d10bbb4e53464943584 to your computer and use it in GitHub Desktop.
toml table unnesting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[products]] | |
name = "potato" | |
available = true | |
[products.shelf] | |
row = 7 | |
column = 12 | |
[[products]] | |
name = "tomato" | |
available = true | |
shelf = { row = 2, column = 15 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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