Re: Fedora Services API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Apr 26, 2008 at 10:38:51AM -0700, Toshio Kuratomi wrote:
[snip]

> 2) JSON data that is deeply nested sucks because objects are turned into 
> dictionaries so you have to write things like:
>
> package['listings']['F-8']['people']['toshio']['acls']['commit']['status']
>
> to get the status of a person's acls on a package.

When writing zmugfs I used simplejson.loads(rsp, object_hook=create_tree)
where create_tree is an object creation method.  The other option
is to change the depth of the object returned.

-- 
jesus m. rodriguez     | jesusr@xxxxxxxxxx
sr. software engineer  | irc: zeus
red hat network        | 919.754.4413 (w)
rhce # 805008586930012 | 919.623.0080 (c)
+-------------------------------------------+
|  "Those who cannot learn from history     |
|   are doomed to repeat it."               |
|                       -- George Santayana |
+-------------------------------------------+

_______________________________________________
Fedora-infrastructure-list mailing list
Fedora-infrastructure-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-infrastructure-list

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux