[sf-perl] JSON sorting question

Francisco Obispo fobispo at isc.org
Mon Nov 22 12:14:13 PST 2010


So you want to sort the contents of "items"? 

"items" : [
           "Z",
           "y",
           "X",
           "w"
        ]



I would just say, to avoid complexity, just sort the structure
out of the JSON package.. it will make your life much easier.





On Nov 22, 2010, at 11:31 AM, David Alban wrote:

> it seems to be sorting only the highest level keys.  any idea on how
> to make it sort at every level?
> 
> is this the case where i'd have to write my own sort routine that
> sorted arbitrary data structures too arbitrary levels?
> 
> thanks.

Francisco Obispo 
Hosted@ Programme Manager
email: fobispo at isc.org
Phone: +1 650 423 1374 || INOC-DBA *3557* NOC
Key fingerprint = 532F 84EB 06B4 3806 D5FA  09C6 463E 614E B38D B1BE






More information about the SanFrancisco-pm mailing list