remove nil measurements
tweak json template