{"action":"created","issue":{"url":"https://api.github.com/repos/opensparkl/sse_cli/issues/10","repository_url":"https://api.github.com/repos/opensparkl/sse_cli","labels_url":"https://api.github.com/repos/opensparkl/sse_cli/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/opensparkl/sse_cli/issues/10/comments","events_url":"https://api.github.com/repos/opensparkl/sse_cli/issues/10/events","html_url":"https://github.com/opensparkl/sse_cli/issues/10","id":356564844,"node_id":"MDU6SXNzdWUzNTY1NjQ4NDQ=","number":10,"title":"cli doesn't render json field values on response or reply","user":{"login":"jacobythwaites","id":2727822,"node_id":"MDQ6VXNlcjI3Mjc4MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2727822?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobythwaites","html_url":"https://github.com/jacobythwaites","followers_url":"https://api.github.com/users/jacobythwaites/followers","following_url":"https://api.github.com/users/jacobythwaites/following{/other_user}","gists_url":"https://api.github.com/users/jacobythwaites/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobythwaites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobythwaites/subscriptions","organizations_url":"https://api.github.com/users/jacobythwaites/orgs","repos_url":"https://api.github.com/users/jacobythwaites/repos","events_url":"https://api.github.com/users/jacobythwaites/events{/privacy}","received_events_url":"https://api.github.com/users/jacobythwaites/received_events","type":"User","site_admin":false},"labels":[{"id":1025228964,"node_id":"MDU6TGFiZWwxMDI1MjI4OTY0","url":"https://api.github.com/repos/opensparkl/sse_cli/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":{"login":"jacobythwaites","id":2727822,"node_id":"MDQ6VXNlcjI3Mjc4MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2727822?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobythwaites","html_url":"https://github.com/jacobythwaites","followers_url":"https://api.github.com/users/jacobythwaites/followers","following_url":"https://api.github.com/users/jacobythwaites/following{/other_user}","gists_url":"https://api.github.com/users/jacobythwaites/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobythwaites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobythwaites/subscriptions","organizations_url":"https://api.github.com/users/jacobythwaites/orgs","repos_url":"https://api.github.com/users/jacobythwaites/repos","events_url":"https://api.github.com/users/jacobythwaites/events{/privacy}","received_events_url":"https://api.github.com/users/jacobythwaites/received_events","type":"User","site_admin":false},"assignees":[{"login":"jacobythwaites","id":2727822,"node_id":"MDQ6VXNlcjI3Mjc4MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2727822?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobythwaites","html_url":"https://github.com/jacobythwaites","followers_url":"https://api.github.com/users/jacobythwaites/followers","following_url":"https://api.github.com/users/jacobythwaites/following{/other_user}","gists_url":"https://api.github.com/users/jacobythwaites/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobythwaites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobythwaites/subscriptions","organizations_url":"https://api.github.com/users/jacobythwaites/orgs","repos_url":"https://api.github.com/users/jacobythwaites/repos","events_url":"https://api.github.com/users/jacobythwaites/events{/privacy}","received_events_url":"https://api.github.com/users/jacobythwaites/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-09-03T16:55:14Z","updated_at":"2018-09-03T16:56:34Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"To replicate:\r\n```\r\njthwaites sse1 $ sparkl vars -l data '{\"a\":3}'\r\nvars\r\ncount:\t1\r\n\r\n\tdata\r\n\tmethod:\tliteral\r\n\tvalue:\t{\"a\":3}\r\njthwaites sse1 $ sparkl tree -a\r\nµ Test\r\n├── ▒ Sequencer:sequencer\r\n├── ƒ data:json\r\n└── >> Solicit:Sequencer data\r\n    └── << Ok data\r\njthwaites sse1 $ sparkl call Solicit\r\nresponse\r\nid:\tJ-YOL-YR9-K02\r\nname:\tOk\r\n\r\n\tdatum\r\n\tfield:\tB-YOL-YR9-JYA\r\n\tname:\tdata\r\n\ttype:\tjson\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/sparkl\", line 11, in <module>\r\n    load_entry_point('sparkl-cli==1.3.5', 'console_scripts', 'sparkl')()\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/main.py\", line 275, in main\r\n    show_struct(result)\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/common.py\", line 484, in show_struct\r\n    show_struct(content_object, indent + 1)\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/common.py\", line 484, in show_struct\r\n    show_struct(content_object, indent + 1)\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/common.py\", line 472, in show_struct\r\n    tag = json_object[\"tag\"]\r\nKeyError: 'tag'\r\njthwaites sse1 $ \r\njthwaites sse1 $ sparkl session\r\nsession\r\ndir:\t/var/folders/b8/hb6pxq_56y3bdl3ywdt5vnqr0000gp/T/sse_cli/39338\r\nid:\t39338\r\njthwaites sse1 $ sparkl call Solicit\r\nresponse\r\nid:\tJ-YOL-YR9-K02\r\nname:\tOk\r\n\r\n\tdatum\r\n\tfield:\tB-YOL-YR9-JYA\r\n\tname:\tdata\r\n\ttype:\tjson\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/sparkl\", line 11, in <module>\r\n    load_entry_point('sparkl-cli==1.3.5', 'console_scripts', 'sparkl')()\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/main.py\", line 275, in main\r\n    show_struct(result)\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/common.py\", line 484, in show_struct\r\n    show_struct(content_object, indent + 1)\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/common.py\", line 484, in show_struct\r\n    show_struct(content_object, indent + 1)\r\n  File \"/usr/local/lib/python3.6/site-packages/sparkl_cli/common.py\", line 472, in show_struct\r\n    tag = json_object[\"tag\"]\r\nKeyError: 'tag'\r\n```\r\nThe transaction has worked fine. Check the sequencer listen output:\r\n```\r\n$ sparkl -s 39338 listen Sequencer\r\ntxn_start\r\nservice:\tadmin@localhost/Scratch/Test/Sequencer\r\n\r\n\ttxn\r\n\tnode:\tsse1@sparkl01.local\r\n\ttxn_id:\tE-YOL-YR9-L36\r\nsolicit\r\nservice:\tadmin@localhost/Scratch/Test/Sequencer\r\nsolicit:\tadmin@localhost/Scratch/Test/Solicit\r\n\r\n\tfield\r\n\tname:\tdata\r\n\ttype:\tjson\r\n\tvalue:\t{\r\n  \"a\": 3\r\n}\r\nresponse\r\nresponse:\tadmin@localhost/Scratch/Test/Solicit/Ok\r\nservice:\tadmin@localhost/Scratch/Test/Sequencer\r\n\r\n\tfield\r\n\tname:\tdata\r\n\ttype:\tjson\r\n\tvalue:\t{\r\n  \"a\": 3\r\n}\r\ntxn_end\r\nservice:\tadmin@localhost/Scratch/Test/Sequencer\r\n\r\n\ttxn\r\n\treason:\tnormal\r\n\ttxn_id:\tE-YOL-YR9-L36\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/opensparkl/sse_cli/issues/comments/418161488","html_url":"https://github.com/opensparkl/sse_cli/issues/10#issuecomment-418161488","issue_url":"https://api.github.com/repos/opensparkl/sse_cli/issues/10","id":418161488,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODE2MTQ4OA==","user":{"login":"jacobythwaites","id":2727822,"node_id":"MDQ6VXNlcjI3Mjc4MjI=","avatar_url":"https://avatars0.githubusercontent.com/u/2727822?v=4","gravatar_id":"","url":"https://api.github.com/users/jacobythwaites","html_url":"https://github.com/jacobythwaites","followers_url":"https://api.github.com/users/jacobythwaites/followers","following_url":"https://api.github.com/users/jacobythwaites/following{/other_user}","gists_url":"https://api.github.com/users/jacobythwaites/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobythwaites/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobythwaites/subscriptions","organizations_url":"https://api.github.com/users/jacobythwaites/orgs","repos_url":"https://api.github.com/users/jacobythwaites/repos","events_url":"https://api.github.com/users/jacobythwaites/events{/privacy}","received_events_url":"https://api.github.com/users/jacobythwaites/received_events","type":"User","site_admin":false},"created_at":"2018-09-03T16:56:34Z","updated_at":"2018-09-03T16:56:34Z","author_association":"CONTRIBUTOR","body":"A non-object JSON value is fine:\r\n```\r\n$ sparkl vars -l data 3\r\nvars\r\ncount:\t1\r\n\r\n\tdata\r\n\tmethod:\tliteral\r\n\tvalue:\t3\r\njthwaites sse1 $ sparkl call Solicit\r\nresponse\r\nid:\tJ-YOL-YR9-K02\r\nname:\tOk\r\n\r\n\tdatum\r\n\tfield:\tB-YOL-YR9-JYA\r\n\tname:\tdata\r\n\ttype:\tjson\r\n~~~~\r\n3\r\n~~~~\r\n```"}}
{"actor":{"display_login":"jacobythwaites"}}