diff --git a/tablib/formats/_json.py b/tablib/formats/_json.py index fbc3758..843da90 100644 --- a/tablib/formats/_json.py +++ b/tablib/formats/_json.py @@ -10,6 +10,7 @@ except ImportError: import tablib.core + title = 'json' extentions = ('json', 'jsn') @@ -47,5 +48,5 @@ def detect(stream): try: json.loads(stream) return True - except json.decoder.JSONDecodeError: + except ValueError: return False \ No newline at end of file