diff options
author | https://www.google.com/accounts/o8/id?id=AItOawkR2dZjxqujBXcitvsP_PeWG8A-LfLU_tg <Ferno@web> | 2014-10-10 15:40:17 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2014-10-10 15:40:17 +0000 |
commit | 2006344388df758aefbc8775d3e5f1e78356d5ab (patch) | |
tree | 2053b55267208383a3b0b615cef36a6863666d58 | |
parent | 2d8fedb1f13b8a646dc63ca0ae1e0237fe7798df (diff) |
-rw-r--r-- | doc/forum/git_annex_whereis_--json_output_with_two_variables_with_same_name.mdwn | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/forum/git_annex_whereis_--json_output_with_two_variables_with_same_name.mdwn b/doc/forum/git_annex_whereis_--json_output_with_two_variables_with_same_name.mdwn new file mode 100644 index 000000000..0cc7ae530 --- /dev/null +++ b/doc/forum/git_annex_whereis_--json_output_with_two_variables_with_same_name.mdwn @@ -0,0 +1,21 @@ +Hi Joey, + +I'm trying to extract data from a git annex whereis --json, but discovered that in json, the output has two values with same name. +For instance: + +{ + "command":"whereis", + "file":"filename.webm", + "note":"3 copies", + "whereis":[ + {"uuid":"1b7d69fe-22e2-11e4-bc47-279f5115dfde","description":"chasqui","here":false}, + {"uuid":"e5cc9824-450b-4340-b30f-c2d92c6a52f7","description":"coco","here":false}, + {"uuid":"f84a1327-febb-4199-a106-9c3fd2288826","description":"[dpadua]","here":false}], + "note":"\t1b7d69fe-22e2-11e4-bc47-279f5115dfde -- chasqui\n \te5cc9824-450b-4340-b30f-c2d92c6a52f7 -- coco\n \tf84a1327-febb-4199-a106-9c3fd2288826 -- [dpadua]\n", + "untrusted":[], + "success":true +} + +When I read the json from another program, it gets only the second value (and I wanted the first, the number of copies). I'm using git-annex version 5.20140831+b1 + + |