# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


import json
from .base import BaseOperator, Operator
        res | expect.to_not.have.json.equal.to({'foo': 'bar'})
        res | expect.to_not.have.json.to.match(r'(\w+) world$')
        res | expect.to_not.have.json.to.contain('world')
    """

    # Defines operator kind
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('json',)

    # Operator aliases
    aliases = ('equal', 'data', 'to', 'be')

    # Enable raw reporting mode for this operator
    raw_mode = True

    # Raw limit characters
    raw_size = 500

    # Show match diff on error
    show_diff = True

    # Error message templates
    expected_message = Operator.Dsl.Message(
        'a response JSON body equal to:\n    {value}',
        'a response JSON body not equal to:\n    {value}',
    )

    # Subject message template

# Path: grappa_http/operators/base.py
# class BaseOperator(Operator):
#     def isadapter(self, response):
#     def adapt(self, response):
#     def on_access(self, response):
#     def match(self, response, *expected, **kw):


# Path: grappa_http/operators/json_body.py
import json
from .base import BaseOperator, Operator

        res | expect.to_not.have.json.equal.to({'foo': 'bar'})
        res | expect.to_not.have.json.to.match(r'(\w+) world$')
        res | expect.to_not.have.json.to.contain('world')
    """

    # Defines operator kind
    kind = Operator.Type.MATCHER

    # Operator keywords
    operators = ('json',)

    # Operator aliases
    aliases = ('equal', 'data', 'to', 'be')

    # Enable raw reporting mode for this operator
    raw_mode = True

    # Raw limit characters
    raw_size = 500

    # Show match diff on error
    show_diff = True

    # Error message templates
    expected_message = Operator.Dsl.Message(
        'a response JSON body equal to:\n    {value}',
        'a response JSON body not equal to:\n    {value}',
    )

    # Subject message template

    subject_message = Operator.Dsl.Message(