adding assertions for saving a region object into a JSON file