Did you look at what it's complaining about? When I got that error the issue was that PostgreSQL had escaped the backslashes within the strings twice. Which you can fix as follows:
sed -e 's/\\\\/\\/g'< input.json |jq . >output.json