Selectively add sizes to the json.