hi everyone! this is my first post here.
question: i'm in the process of writing a notetag parser, and i'm wondering if there are any conventions for handling nested data. currently, i'm thinking something like:
basically, just wrap objects in `{}` and arrays in `[]`. alternatively, maybe ppl are using more of a yaml-esque approach and relying on indention?
or maybe even nested notetags?
PS: i'm new here, and for the life of me, i cannot figure out how to change my avatar. is that ability locked on new accounts?
question: i'm in the process of writing a notetag parser, and i'm wondering if there are any conventions for handling nested data. currently, i'm thinking something like:
Code:
<MyNotetag>
string: my string
number: 123
array of numbers: [1, 2, 3]
object: { key: value of key, other key: value of other key }
array of objects: [{ foo: bar, goo: gaa }, { num: 66 }]
</MyNotetag>
basically, just wrap objects in `{}` and arrays in `[]`. alternatively, maybe ppl are using more of a yaml-esque approach and relying on indention?
Code:
<MyNotetag>
string: my string
number: 123
array of numbers: 1, 2, 3
object:
key: value of key
other key: value of other key
array of objects:
- foo: bar
goo: gaa
- num: 66
</MyNotetag>
or maybe even nested notetags?
Code:
<MyNotetag>
string: my string
number: 123
array of numbers: 1, 2, 3
object: <NestedTag>key: value of key, other key: value of other key</NestedTag>
array of objects: <NestedTag>foo: bar, goo: gaa</NestedTag>, <NestedTag>num: 66</NestedTag>
</MyNotetag>
PS: i'm new here, and for the life of me, i cannot figure out how to change my avatar. is that ability locked on new accounts?