Join Slack
Powered by
Hello, does anyone know why the PostgresFetch task...
# ask-community
t
Trevor Sweeney
01/14/2022, 12:35 AM
Hello, does anyone know why the PostgresFetch task returns a json string's key value pairs with single quotes instead of double quotes?
k
Kevin Kho
01/14/2022, 12:57 AM
I don’t know but the task is really simple. It’s just an
execute
call
. Do you think something needs to be added?
t
Trevor Sweeney
01/14/2022, 1:10 AM
Closed issue here
https://github.com/psycopg/psycopg2/issues/190
Trevor Sweeney
01/14/2022, 1:35 AM
As I understand, psycopg converts the json to a python object and parses. A simple solution looks to be to cast the column as text in the query to avoid this parsing operation which will return the json key/value pairs in double quotes.
Open in Slack
Previous
Next