summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tablib/formats/_json.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tablib/formats/_json.py b/tablib/formats/_json.py
index 5619316..da31b23 100644
--- a/tablib/formats/_json.py
+++ b/tablib/formats/_json.py
@@ -4,9 +4,12 @@
"""
try:
- import json
+ import json # load system JSON (Python >= 2.6)
except ImportError:
- import simplejson as json
+ try:
+ import simplejson as json
+ except ImportError:
+ import tablib.packages.simplejson as json # use the vendorized copy
import tablib.core