processor for array or json objects #2008
davidwormald
started this conversation in
General
Replies: 2 comments 7 replies
-
@davidwormald I'm not sure I follow how you're getting that single |
Beta Was this translation helpful? Give feedback.
7 replies
-
That's perfect! Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I need to have an output that is a json array of objects. I tried using the awk processor and, of course, found that it created an array of strings :-)
My input does not have an array of objects so I cannot do a simple transform on the input.
How can I create an output that looks like this json:
[
{ "a": 1, "b": 2},
{ "a": 3, "b": 4}
]
instead of:
[
"{ "a": 1,\ "b": 2}",
"{ "a": 3, "b": 4}"
]
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions