Postgresql Converting Select Statement Directly Into Json Array

Postgresql Converting Select Statement Directly Into Json Array