added underscore to json_safe_dict to denote private method