def test_json():
 test_data = BytesIO('{"a": "b"}')
 assert (hug.input_format.json(test_data) == {'a': 'b'})

def test_json ( ) : test_data = BytesIO ( '{"a": "b"}' ) assert ( hug . input_format . json ( test_data ) == { 'a' : 'b' } )
test to ensure that the json type correctly handles url encoded json .