On 01/28/2011 02:41 PM, Stephan Beal wrote:
> stephan@ludo:~/cvs/fossil/fossil$ ./fossil time -json -n 2
> {
> "columns":[
> "rid",
> "uuid",
> "mDateTime",
> "comment",
> "primPlinkCount",
> "plinkCount",
> "mtime"
>      ],
> "rows":[

It's awesome that you're adding this, but FWIW this is not how JSON is 
typically organized. If it's useful to have the columns in an ordered 
list that's fine, but the rows should be object literals like:
{ rid:###, uuid:###, etc }

I would omit the columns list entirely and just return an array of 
(object) rows, but again I have no objection to a columns list if 
someone needs them.

-- 
Joshua Paine
LetterBlock: Web applications built with joy
http://letterblock.com/
301-576-1920
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to