Skip to content

Can export a single array like json? #972

Answered by jakedane
cangSDARM asked this question in Q&A
Discussion options

You must be logged in to vote

No, you must write it as a key/value pair. The key can not be omitted.

The specification says it's valid to have an empty (quoted) key, but it is discouraged. So this would be valid but discouraged:

"" = [
  "arrayItem1",
  "arrayItem2"
]

And it doesn't get you what you want because in json this would translate to:

{
  "": [
    "arrayItem1",
    "arrayItem2"
  ]
}

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cangSDARM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants