cancel
Showing results for 
Search instead for 
Did you mean: 

Removing [] from output of the triggered pipeline

gremishe
New Contributor

Hi,

We have a triggered pipeline that returns JSON.
Here is the example of the output:
[
{“metadata”:{“version”:“1”},“content”:[{“elementType”:“detail”,“title”:“Gleb”,“content”:}]}
]

The problem is that brackets are causing the issue for the vendor that calls this pipeline.
How do we remove brackets?

Here is the desired output:
{“metadata”:{“version”:“1”},“content”:[{“elementType”:“detail”,“title”:“Gleb”,“content”:}]}

Thank you,
Gleb.

6 REPLIES 6

koryknick
Employee
Employee

If you are using a JSON Formatter and the pipeline will only return one document, you can just check the “Format each document” option.

That worked.
Thank you.