I'm not using the code and so I could be wrong.  But it seems to me that the
output would be more useful as an array of objects:

[{"rid":10733, "uuid":"136ac24170b24db53197c00154d4424558e28eda",...},
 {"rid":10732, "uuid":"13165785e1deb2de3b1fb9014f5c7c7b290f0f4e",...},
 ...]

Your output is an object containing arrays of arrays, which seems harder to
use:



> stephan@ludo:~/cvs/fossil/fossil$ ./fossil time -json -n 2
> {
>     "columns":[
>         "rid",
>         "uuid",
>         "mDateTime",
>         "comment",
>         "primPlinkCount",
>         "plinkCount",
>         "mtime"
>     ],
>     "rows":[
>         [
>             10733,
>             "136ac24170b24db53197c00154d4424558e28eda",
>             "2011-01-28 18:49:07",
>             "Create new branch named \"sgb-cson\" (user: stephan tags:
> sgb-cson)",
>             7342276,
>             1,
>             2455590.284119
>         ],
>         [
>             10732,
>             "13165785e1deb2de3b1fb9014f5c7c7b290f0f4e",
>             "2011-01-28 14:09:57",
>             "Add hyperlinks to the \"user:\" and \"tags:\" marks in
> timelines. (user: drh tags: trunk)",
>             1,
>             1,
>             2455590.090254
>         ]
>     ]
> }
>
> How's that look? The indentation (or lack of) is configurable in cson, but
> i haven't yet added a CLI/URL flag for it here.
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
>
> --
> ----- stephan beal
> http://wanderinghorse.net/home/stephan/
>
> _______________________________________________
> fossil-users mailing list
> [email protected]
> http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
>
>


-- 
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to