'Convert this document to JSON.
:param use_db_field: Serialize field names as they appear in
MongoDB (as opposed to attribute names on this document).
Defaults to True.'

def to_json(self, *args, **kwargs):

    use_db_field = kwargs.pop('use_db_field', True)
    return json_util.dumps(self.to_mongo(use_db_field), *args, **kwargs)
