          assert renderer.render(data) == b'{"a":1,"b":2}'
  
      def test_compact(self):
          renderer = JSONRenderer()
          data = OrderedDict([('a', 1), ('b', 2)])
          context = {'indent': 4}
          assert (
              renderer.render(data, renderer_context=context) ==
              b'{\n    "a": 1,\n    "b": 2\n}'
          )
 
</s> remove         data = OrderedDict([('a', 1), ('b', 2)])
 </s> add         data = {"a": 1, "b": 2} </s> remove         data = OrderedDict([('a', 1), ('b', 2)])
 </s> add         data = {"a": 1, "b": 2} </s> remove             ]),
 </s> add             }, </s> remove         ret = OrderedDict()
        errors = OrderedDict()
 </s> add         ret = {}
        errors = {} </s> remove         errors = OrderedDict()
 </s> add         errors = {}
        data = {"a": 1, "b": 2}
          assert renderer.render(data) == b'{"a":1,"b":2}'
  
      def test_compact(self):
          renderer = JSONRenderer()
        data = {"a": 1, "b": 2}
          context = {'indent': 4}
          assert (
              renderer.render(data, renderer_context=context) ==
              b'{\n    "a": 1,\n    "b": 2\n}'
          )
keep keep keep keep replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
tests/test_renderers.py