Postgresql Select Json Array Syntax Python Examples Using While Loop