def test_asJSON(self): self.assertEqual(C.asJSON({'a': [1]}), b'{"a": [1]}')
def test_asJSON_withMoreArguments(self): self.assertEqual(C.asJSON({"b": [0], "a": [1]}, sort_keys=True), b'{"a": [1], "b": [0]}')
def sockJSJSON(data, cls=None): # no spaces return asJSON(data, separators=(',', ':'), cls=cls)