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

(Qbadx) #1


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 :


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

Is it even possible?

The plugin is configured this way :

http {
        url => ""
        http_method => "post"
        content_type => "application/json"
        headers => ["Accept","text/html","Authorization","fsdflsfdsfoisdXcsdfdfSDFd==dfs","X-ABC-APPID","a6112346542132bfrt5e7685dsqdqs541sqd"]
        format => "json"


(system) #2

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