{"action":"created","issue":{"url":"https://api.github.com/repos/radare/radare2/issues/2204","labels_url":"https://api.github.com/repos/radare/radare2/issues/2204/labels{/name}","comments_url":"https://api.github.com/repos/radare/radare2/issues/2204/comments","events_url":"https://api.github.com/repos/radare/radare2/issues/2204/events","html_url":"https://github.com/radare/radare2/pull/2204","id":62676084,"number":2204,"title":"#2061 add simple json style output to radiff2","user":{"login":"kairenken","id":5123349,"avatar_url":"https://avatars.githubusercontent.com/u/5123349?v=3","gravatar_id":"","url":"https://api.github.com/users/kairenken","html_url":"https://github.com/kairenken","followers_url":"https://api.github.com/users/kairenken/followers","following_url":"https://api.github.com/users/kairenken/following{/other_user}","gists_url":"https://api.github.com/users/kairenken/gists{/gist_id}","starred_url":"https://api.github.com/users/kairenken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kairenken/subscriptions","organizations_url":"https://api.github.com/users/kairenken/orgs","repos_url":"https://api.github.com/users/kairenken/repos","events_url":"https://api.github.com/users/kairenken/events{/privacy}","received_events_url":"https://api.github.com/users/kairenken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/radare/radare2/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/radare/radare2/labels/json","name":"json","color":"d4c5f9"},{"url":"https://api.github.com/repos/radare/radare2/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/radare/radare2/milestones/7","html_url":"https://github.com/radare/radare2/milestones/0.9.9","labels_url":"https://api.github.com/repos/radare/radare2/milestones/7/labels","id":684287,"number":7,"title":"0.9.9","description":"","creator":{"login":"jvoisin","id":325724,"avatar_url":"https://avatars.githubusercontent.com/u/325724?v=3","gravatar_id":"","url":"https://api.github.com/users/jvoisin","html_url":"https://github.com/jvoisin","followers_url":"https://api.github.com/users/jvoisin/followers","following_url":"https://api.github.com/users/jvoisin/following{/other_user}","gists_url":"https://api.github.com/users/jvoisin/gists{/gist_id}","starred_url":"https://api.github.com/users/jvoisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvoisin/subscriptions","organizations_url":"https://api.github.com/users/jvoisin/orgs","repos_url":"https://api.github.com/users/jvoisin/repos","events_url":"https://api.github.com/users/jvoisin/events{/privacy}","received_events_url":"https://api.github.com/users/jvoisin/received_events","type":"User","site_admin":false},"open_issues":81,"closed_issues":50,"state":"open","created_at":"2014-06-08T01:35:57Z","updated_at":"2015-03-23T23:58:19Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2015-03-18T12:01:54Z","updated_at":"2015-03-25T17:33:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/radare/radare2/pulls/2204","html_url":"https://github.com/radare/radare2/pull/2204","diff_url":"https://github.com/radare/radare2/pull/2204.diff","patch_url":"https://github.com/radare/radare2/pull/2204.patch"},"body":"This pull request adds a simple json-based output to radiff2.\r\nSee this example:\r\n````bash\r\n$ radiff2 -j bgrep bgrep.2\r\n{ \"offset\":\"0x000008e2\" , \"from\":\"31ed5e89e1\" , \"to\":\"9066890408\" }\r\n{ \"offset\":\"0x00000937\" , \"from\":\"74\" , \"to\":\"90\" }\r\n````\r\n\r\nradare-style output:\r\n````bash\r\n$ radiff2 -r bgrep bgrep.2\r\nwx 9066890408 @ 0x000008e2\r\nwx 90 @ 0x00000937\r\n````\r\n\r\nnomal output:\r\n````bash\r\n$ radiff2 bgrep bgrep.2\r\n0x000008e2 31ed5e89e1 => 9066890408 0x000008e2\r\n0x00000937 74 => 90 0x00000937\r\n````"},"comment":{"url":"https://api.github.com/repos/radare/radare2/issues/comments/86134317","html_url":"https://github.com/radare/radare2/pull/2204#issuecomment-86134317","issue_url":"https://api.github.com/repos/radare/radare2/issues/2204","id":86134317,"user":{"login":"radare","id":917142,"avatar_url":"https://avatars.githubusercontent.com/u/917142?v=3","gravatar_id":"","url":"https://api.github.com/users/radare","html_url":"https://github.com/radare","followers_url":"https://api.github.com/users/radare/followers","following_url":"https://api.github.com/users/radare/following{/other_user}","gists_url":"https://api.github.com/users/radare/gists{/gist_id}","starred_url":"https://api.github.com/users/radare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radare/subscriptions","organizations_url":"https://api.github.com/users/radare/orgs","repos_url":"https://api.github.com/users/radare/repos","events_url":"https://api.github.com/users/radare/events{/privacy}","received_events_url":"https://api.github.com/users/radare/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T17:33:33Z","updated_at":"2015-03-25T17:33:33Z","body":"Add spaces between the function name and the parenthesis, like the rest of the code.\r\n\r\nYou can make a global var to store the type of output, .. but as long as you are passing an integer as void*, it would be better to just wrap all the global variables inside a struct and pass the pointer as the void*user."}}