Arrays as objects #543
conartist6
started this conversation in
General
Replies: 1 comment 3 replies
-
|
Which code example are you talking about? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I was surprised that the usage examples prominently feature several examples which use arrays as if they were objects...
If KDL was translated to JSON the example code would be showing
['key1', 'value1', 'key2', 'value2']. This is never mentioned as being supported semantically anywhere that I can find, so I can only assume that it's as non-semantic in KDL as it would be in JSON. Am I incorrect about this? Why would an unsupported usage pattern be featured so prominently?Edit: I see now that I was wrong about
['key1', 'value1', 'key2', 'value2']. It's more like[['key1', ['value1']], ['key2', ['value2']]]].Beta Was this translation helpful? Give feedback.
All reactions