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

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


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