Customiser stores empty values in json templates

If I have a lot of optional settings in my blocks and sections (made possible with visible_if) those empty values are sorted in the json template on save, however if I manually remove them the template still works.

Could only settings with a value which is not the default be saved in the json file, as it is now easy to reach the max file size.