[ECODP-dev] curl package_show

Bert Van Nuffelen bert.van.nuffelen at tenforce.com
Wed Dec 18 10:39:10 UTC 2013


Hi David,

I do a curl package_show to get the content of a dataset,
but it returns me a strange result.

Namely some fields are encapsulated in explicit quoted syle like this
"\"....\""

Is that standard CKAN behaviour (1.8) ?

because if I take that json and use it as is to submit back using
package_update
I get validation error.

here is the command used:

curl -X POST "http://localhost/data/api/3/action/$2" -d @$3 -H
"Authorization: $1" -H "Content-Type: application/json"

kind regards,

Bert




-- 
Bert Van Nuffelen

Semantic Technologies Software Architect at TenForce
www.tenforce.be

Bert.Van.Nuffelen at tenforce.com
Office: +32 (0)16 31 48 60
Mobile:+32 479 06 24 26
skype: bert.van.nuffelen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.okfn.org/mailman/private/ecodp-dev/attachments/20131218/48298b0a/attachment.html>


More information about the ecodp-dev mailing list