{"action":"created","issue":{"url":"https://api.github.com/repos/mvs-org/metaverse/issues/234","repository_url":"https://api.github.com/repos/mvs-org/metaverse","labels_url":"https://api.github.com/repos/mvs-org/metaverse/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/mvs-org/metaverse/issues/234/comments","events_url":"https://api.github.com/repos/mvs-org/metaverse/issues/234/events","html_url":"https://github.com/mvs-org/metaverse/issues/234","id":290676997,"number":234,"title":"fetch-balance returns a poorly-formatted JSON response in v2.","user":{"login":"NotoriousPyro","id":706132,"avatar_url":"https://avatars3.githubusercontent.com/u/706132?v=4","gravatar_id":"","url":"https://api.github.com/users/NotoriousPyro","html_url":"https://github.com/NotoriousPyro","followers_url":"https://api.github.com/users/NotoriousPyro/followers","following_url":"https://api.github.com/users/NotoriousPyro/following{/other_user}","gists_url":"https://api.github.com/users/NotoriousPyro/gists{/gist_id}","starred_url":"https://api.github.com/users/NotoriousPyro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NotoriousPyro/subscriptions","organizations_url":"https://api.github.com/users/NotoriousPyro/orgs","repos_url":"https://api.github.com/users/NotoriousPyro/repos","events_url":"https://api.github.com/users/NotoriousPyro/events{/privacy}","received_events_url":"https://api.github.com/users/NotoriousPyro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-23T01:28:43Z","updated_at":"2018-02-01T03:31:28Z","closed_at":null,"author_association":"NONE","body":"_Similarly to #226 and #225_ \r\nWhen querying fetch-balance via v2, the objects are embedded within another object and causes increased complexity to interface with the API and increased chance to break by having to write extra decoding info.\r\n\r\n`curl -X POST -H \"Content-Type: application/json\" --data '{\"jsonrpc\":\"2.0\",\"method\":\"fetch-balance\",\"params\":[\"MBH5mtwPvNFqMqb6S9HN5hNCG5Wbu8WaCb\"],\"id\":1}' http://127.0.0.1:8820/rpc/v2`\r\n```\r\n{\r\n        \"id\" : 1,\r\n        \"jsonrpc\" : \"2.0\",\r\n        \"result\" :\r\n        {\r\n                \"balance\" :\r\n                {\r\n                        \"address\" : \"MBH5mtwPvNFqMqb6S9HN5hNCG5Wbu8WaCb\",\r\n                        \"confirmed\" : 354535699733,\r\n                        \"frozen\" : 0,\r\n                        \"received\" : 354535699733,\r\n                        \"unspent\" : 354535699733\r\n                }\r\n        }\r\n}\r\n\r\n```\r\n\r\nThis is easier to work with:\r\n```\r\n{\r\n        \"id\" : 1,\r\n        \"jsonrpc\" : \"2.0\",\r\n        \"result\" :\r\n        {\r\n                \"address\" : \"MBH5mtwPvNFqMqb6S9HN5hNCG5Wbu8WaCb\",\r\n                \"confirmed\" : 354535699733,\r\n                \"frozen\" : 0,\r\n                \"received\" : 354535699733,\r\n                \"unspent\" : 354535699733\r\n        }\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mvs-org/metaverse/issues/comments/362147936","html_url":"https://github.com/mvs-org/metaverse/issues/234#issuecomment-362147936","issue_url":"https://api.github.com/repos/mvs-org/metaverse/issues/234","id":362147936,"user":{"login":"betachen","id":12060728,"avatar_url":"https://avatars0.githubusercontent.com/u/12060728?v=4","gravatar_id":"","url":"https://api.github.com/users/betachen","html_url":"https://github.com/betachen","followers_url":"https://api.github.com/users/betachen/followers","following_url":"https://api.github.com/users/betachen/following{/other_user}","gists_url":"https://api.github.com/users/betachen/gists{/gist_id}","starred_url":"https://api.github.com/users/betachen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/betachen/subscriptions","organizations_url":"https://api.github.com/users/betachen/orgs","repos_url":"https://api.github.com/users/betachen/repos","events_url":"https://api.github.com/users/betachen/events{/privacy}","received_events_url":"https://api.github.com/users/betachen/received_events","type":"User","site_admin":false},"created_at":"2018-02-01T03:31:28Z","updated_at":"2018-02-01T03:31:28Z","author_association":"OWNER","body":"@NotoriousPyro Thanks a lot.\r\nWe can released a new version v3 for this, to fix these poorly-formatted."}}
{"actor":{"display_login":"betachen"}}