Postgresql Json Array Length Jquery Css Change Color