Fix test_json