"""
json.py
"""

import httplib
import simplejson as json

from .base import Response

class JsonResponse(Response):
    """
    A JSON formatted response.
    """

    def __init__(self, status, content = None, headers = None):
        """
        Create a JsonResponse.
        """
        Response.__init__(self, status, content, headers)
        self.content_type = "application/json"
        self.content = json.dumps(self.content)

f7d5bacf57d3ec04b3a88f37b118d11e49eef247
<mask token>


class JsonResponse(Response):
    <mask token>
    <mask token>

<mask token>


class JsonResponse(Response):
    <mask token>

    def __init__(self, status, content=None, headers=None):
        """
        Create a JsonResponse.
        """
        Response.__init__(self, status, content, headers)
        self.content_type = 'application/json'
        self.content = json.dumps(self.content)

<mask token>


class JsonResponse(Response):
    """
    A JSON formatted response.
    """

    def __init__(self, status, content=None, headers=None):
        """
        Create a JsonResponse.
        """
        Response.__init__(self, status, content, headers)
        self.content_type = 'application/json'
        self.content = json.dumps(self.content)

<mask token>
import httplib
import simplejson as json
from .base import Response


class JsonResponse(Response):
    """
    A JSON formatted response.
    """

    def __init__(self, status, content=None, headers=None):
        """
        Create a JsonResponse.
        """
        Response.__init__(self, status, content, headers)
        self.content_type = 'application/json'
        self.content = json.dumps(self.content)

"""
json.py
"""

import httplib
import simplejson as json

from .base import Response

class JsonResponse(Response):
    """
    A JSON formatted response.
    """

    def __init__(self, status, content = None, headers = None):
        """
        Create a JsonResponse.
        """
        Response.__init__(self, status, content, headers)
        self.content_type = "application/json"
        self.content = json.dumps(self.content)
