Postgresql Json Array Length Jquery Document