Postgres Query Json Array Structure