[ckan-dev] API: json-parser broken, was: Re: API: json-parser broken; Access denied

Pascal Christoph christoph at hbz-nrw.de
Tue Sep 20 15:31:46 UTC 2011


sorry for the misleading "Access denied" in the subject.
oo
Am 20.09.2011 17:30 schrieb Pascal Christoph:
> Dear all,
>
> trying to upload json (here the problematic fragment):
>
>    {
>               "url": "http://lobid.org/resource/data/HT002948556?output=xml"
>     },
>
> results in:
> "Bad request - JSON Error: Error parsing JSON data. Error:
> ValueError('Unterminated string starting at: line 1 column 828 (char 828)',)
> JSON (Decoded and re-encoded): '{    \"extras\": "
> [...] "url\": \"http://lobid.org/resource/data/HT002948556?output'"
>
> When I try instead
>    {
>               "url": "http://lobid.org/resource/data/HT002948556"
>     },
>
> there is no Error. As I understand the former *is* valid JSON, so there seems
> to be an error within your JSON parser.
>
> -o





More information about the ckan-dev mailing list