Closed byehack closed 1 year ago
This is basic idea, need to have more discussion.
[[fruits]] name = "apple" [fruits.physical] # subtable color = "red" shape = "round" [[fruits.varieties]] # nested array of tables name = "red delicious" [[fruits.varieties]] name = "granny smith" [[fruits]] name = "banana" [[fruits.varieties]] name = "plantain"
+
^
[[fruits]] name = "apple"
[^.physical] # subtable color = "red" shape = "round"
[[^.varieties]] # nested array of tables name = "red delicious"
[[+]] name = "granny smith"
[[^]] name = "banana"
[[^.varieties]] name = "plantain"
## Json: ```json { "fruits": [ { "name": "apple", "physical": { "color": "red", "shape": "round" }, "varieties": [ { "name": "red delicious" }, { "name": "granny smith" } ] }, { "name": "banana", "varieties": [ { "name": "plantain" } ] } ] }
Previous: #744, #781
Oh, right. Sorry for my duplicate request.
No worries; can be difficult to find these things sometimes.
This is basic idea, need to have more discussion.
OLD
NEW
+
: Duplicating last table name.^
: Goes back one block.[^.physical] # subtable color = "red" shape = "round"
[[^.varieties]] # nested array of tables name = "red delicious"
[[+]] name = "granny smith"
[[^]] name = "banana"
[[^.varieties]] name = "plantain"