[ckan-dev] How to access an array in extra-fields ?

David Raznick kindly at gmail.com
Fri Apr 29 08:36:42 UTC 2011


On Thu, Apr 28, 2011 at 4:57 PM, William Waites <ww at styx.org> wrote:

> * [2011-04-28 16:44:09 +0100] David Raznick <kindly at gmail.com> écrit:
>
>
> ] It should be getting a json dumps only if its *not* a plain string.  It
> is
> ] stored as a json but on return to the wui it gets converted to the repred
> ] version.
>
> If I'm not mistaken the OP is using the API and gets, inter alia,
>
>    "extras": {"publishingInstitution":
>    "[u'http://lobid.org/organisation/DE-605',
>
> Note the u'...' smoking gun...
>
> The u' ' has been fixed but it is tangential to the OP issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20110429/f8474496/attachment-0002.html>


More information about the ckan-dev mailing list