make json sent as compact as possible to avoid 50K max.