I am using a stored procedure accepting a parameter of type JSON[].
Assuming a list similar to listJson = [{"value":"v1"}, {"value" : "v2"}], I would like to invoke the following method of psycopg2:
cursor.execute("call my_stored_procedure(%XXX)",(listJson,))
but I don't know how to replace %XXX to make the placeholder compatible with the list.
I unsuccessfully tried %s::json[] and %s::jsonb[]. If it is not possible to use the method above, I would appreciate if somebody could point me to an other strategy to perform the call.
Thanks in advance.