Postgresql Iterate Over Json Array Example In Php