influx db v2.5 API

212 Views Asked by At

How to make the curl command return output in JSON format for POST request,at present I get the csv format even if --header "Accept: application/json" ,the older version worked fine

1

There are 1 best solutions below

0
On

Could you try appending pretty=true to the URL so to enable pretty-printed JSON output? e.g.

curl -G 'http://localhost:8086/query?pretty=true'

See more info here.