diff --git a/code_comments/comment.py b/code_comments/comment.py index 5f159c8..adde1ea 100644 --- a/code_comments/comment.py +++ b/code_comments/comment.py @@ -150,6 +150,8 @@ def default(self, o): for_json = dict([(name, getattr(o, name)) for name in o.__dict__ if isinstance(getattr(o, name), (basestring, int, list, dict))]) for_json['formatted_date'] = o.formatted_date() for_json['permalink'] = o.href() + for_json['id'] = o.id + for_json['line'] = o.line return for_json else: return json.JSONEncoder.default(self, o)