Hi, I've searched all over the documentation but couldn't find anything regarding the format pgsql.custom.query returns its output.
I'm doing a select count(*) on a table with the hopes of returning a numeric value, but the return is always being wrapped in a json format or similar.
The value I am getting is : [{"count":2}]
The value I need for graphing in this case would be just the output of the count, without the column header or formatting i.e.: 2
Is this something that can be configured? I've tried doing \t in the sql file but it doesn't seem to be supported, returning an invalid character error.
I'm doing a select count(*) on a table with the hopes of returning a numeric value, but the return is always being wrapped in a json format or similar.
The value I am getting is : [{"count":2}]
The value I need for graphing in this case would be just the output of the count, without the column header or formatting i.e.: 2
Is this something that can be configured? I've tried doing \t in the sql file but it doesn't seem to be supported, returning an invalid character error.
Thank you very much, now with $[0].count in preprocessor tab i can get the value. Perfect and thanks again!
Comment