summaryrefslogtreecommitdiff
path: root/tablib/core.py
diff options
context:
space:
mode:
authorAlex Marandon <alex.marandon@makina-corpus.com>2014-10-03 09:17:38 +0200
committerAlex Marandon <alex.marandon@makina-corpus.com>2014-10-03 09:17:38 +0200
commit028be03c2ce66174cddc5ec4bf92445bb8801316 (patch)
treec885d58f04269be3a6565c4a5c34801befb537cb /tablib/core.py
parente1d65ba3c86e897a529ff0e2726d7c4e88a7ec4c (diff)
downloadtablib-028be03c2ce66174cddc5ec4bf92445bb8801316.tar.gz
Fix JSON import example
The example was triggering this error: JSONError: Expecting property name: line 1 column 3 (char 2) This is because JSON property names should be wrapped in double quotes. While at it, I've fixed the typo in "last_name"
Diffstat (limited to 'tablib/core.py')
-rw-r--r--tablib/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/core.py b/tablib/core.py
index b275d8a..f8e2df7 100644
--- a/tablib/core.py
+++ b/tablib/core.py
@@ -544,7 +544,7 @@ class Dataset(object):
A dataset object can also be imported by setting the :class:`Dataset.json` attribute: ::
data = tablib.Dataset()
- data.json = '[{age: 90, first_name: "John", liast_name: "Adams"}]'
+ data.json = '[{"age": 90, "first_name": "John", "last_name": "Adams"}]'
Import assumes (for now) that headers exist.
"""