Postgresql Json Array Length Cpp Parts Discount