Array in one line #220
-
Hi! Sometimes I need to set array in one line {
"yaml": [
"here",
"some",
"command"
]
} And I want to have yaml: ['here', 'some', 'command'] But I have this result now: yaml:
- here
- some
- command |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
To do that you'll need to first create a |
Beta Was this translation helpful? Give feedback.
-
What about a feature for adding this option on the fly in [foo, bar] some - foo
- bar |
Beta Was this translation helpful? Give feedback.
To do that you'll need to first create a
YAML.Document
instance from your object, and then set thetype
of the collection to be'FLOW_SEQ'
. The API for doing that should get easier once #190 is resolved.