Save binned brightnesses to json file