HTTP output module, JSON array input -> JSON array output

Hello,

I'm using the HTTP output module to send data to an API .

The data in the input file are stored in a JSON array like :

[ {"a":"data"}, {"b":"data"} ]

but the output is JSON lines like :

{"a":"data"}
{"b":"data"}

I would like to have the same json array in ouptut!

Is it even possible?

The plugin is configured this way :

http {
        url => "https://some-api.com/path/v1.0/some-endpoint"
        http_method => "post"
        content_type => "application/json"
        headers => ["Accept","text/html","Authorization","fsdflsfdsfoisdXcsdfdfSDFd==dfs","X-ABC-APPID","a6112346542132bfrt5e7685dsqdqs541sqd"]
        format => "json"
        }

Thx

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.