Postgresql Json Array Length Cpp Suspension