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

William Waites ww at styx.org
Thu Apr 28 15:57:16 UTC 2011


* [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...

-w
-- 
William Waites                <mailto:ww at styx.org>
http://river.styx.org/ww/        <sip:ww at styx.org>
F4B3 39BF E775 CF42 0BAB  3DF0 BE40 A6DF B06F FD45




More information about the ckan-dev mailing list