  
  class TestJSONIndentationStyles:
      def test_indented(self):
          renderer = JSONRenderer()
          data = OrderedDict([('a', 1), ('b', 2)])
          assert renderer.render(data) == b'{"a":1,"b":2}'
  
      def test_compact(self):
          renderer = JSONRenderer()
          data = OrderedDict([('a', 1), ('b', 2)])
 
</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 class LinkNode(OrderedDict):
 </s> add class LinkNode(dict): </s> remove         expected = OrderedDict([(1, 'Red Color'), (2, 'Yellow Color'), (3, 'Green Color')])
 </s> add         expected = {1: 'Red Color', 2: 'Yellow Color', 3: 'Green Color'} </s> remove         expected = OrderedDict([(1, 'My Red Color'), (2, 'My Yellow Color'), (3, 'My Green Color')])
 </s> add         expected = {1: 'My Red Color', 2: 'My Yellow Color', 3: 'My Green Color'}
        data = {"a": 1, "b": 2}
  
  class TestJSONIndentationStyles:
      def test_indented(self):
          renderer = JSONRenderer()
        data = {"a": 1, "b": 2}
          assert renderer.render(data) == b'{"a":1,"b":2}'
  
      def test_compact(self):
          renderer = JSONRenderer()
          data = OrderedDict([('a', 1), ('b', 2)])
keep keep keep keep replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
tests/test_renderers.py