On Wed, Mar 15, 2017 at 1:25 AM, Stephan Beal <sgb...@googlemail.com> wrote:

> Yes, it can accept JSON input (even from the CLI). For the full details
> see:
>
> https://docs.google.com/document/d/1fXViveNhDbiXgCuE7QDXQOKeFzf2q
> NUkBEgiUvoqFN4/view
>
> and:
>
> fossil help json
>
> doh - it seems that's missing a reference to the -json-input parameter,
> which expects a filename. i'll get that added.
>

Example:

[stephan@host:~/fossil/fossil]$ cat foo.json
{"command":"HAI"}
[stephan@host:~/fossil/fossil]$ ./fossil json -json-input foo.json
{
"fossil":"2e76b99f5ce5301c4cf82f06d069ec608da888cce543cf8d736d51b110eff6d2",
"timestamp":1489537970,
"command":"HAI",
"procTimeUs":0,
"procTimeMs":0,
"payload":{
"manifestUuid":"2e76b99f5ce5301c4cf82f06d069ec608da888cce543cf8d736d51b110eff6d2",
"manifestVersion":"[2e76b99f5c]",
"manifestDate":"2017-03-15 00:19:41",
"manifestYear":"2017",
"releaseVersion":"2.1",
"releaseVersionNumber":20100,
"resultCodeParanoiaLevel":0,
"jsonApiVersion":"20120713"
}
}


-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to