List object as root #182
taichi-ishitani
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
You could use Module Output for this: // foo.pkl
list {
"foo"
"bar"
}
output {
value = list
} ❯ pkl eval foo.pkl --format yaml
- foo
- bar |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For YAML and JSON, a list object can be the root object lie below.
How about adding such structure support. I think current Plk does not support it.
Beta Was this translation helpful? Give feedback.
All reactions