Issue #5067: improve some json error messages.

Patch by Serhiy Storchaka.
This commit is contained in:
Antoine Pitrou 2012-06-29 01:58:26 +02:00
parent 24319ac407
commit 2d24e94bbe
5 changed files with 14 additions and 12 deletions

View file

@ -99,7 +99,7 @@ Using json.tool from the shell to validate and pretty-print::
"json": "obj"
}
$ echo '{1.2:3.4}' | python -mjson.tool
Expecting property name: line 1 column 1 (char 1)
Expecting property name enclosed in double quotes: line 1 column 1 (char 1)
.. highlight:: python3