Updated Interval Classes to handle JSONObject parsing and passing.