Postgresql Create Function Return Json Array Length Arduino