{"action":"created","issue":{"url":"https://api.github.com/repos/moritz/json/issues/19","repository_url":"https://api.github.com/repos/moritz/json","labels_url":"https://api.github.com/repos/moritz/json/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/moritz/json/issues/19/comments","events_url":"https://api.github.com/repos/moritz/json/issues/19/events","html_url":"https://github.com/moritz/json/issues/19","id":109345949,"number":19,"title":"Extraneous Spaces in Produced JSON String","user":{"login":"zoffixznet","id":5747918,"avatar_url":"https://avatars.githubusercontent.com/u/5747918?v=3","gravatar_id":"","url":"https://api.github.com/users/zoffixznet","html_url":"https://github.com/zoffixznet","followers_url":"https://api.github.com/users/zoffixznet/followers","following_url":"https://api.github.com/users/zoffixznet/following{/other_user}","gists_url":"https://api.github.com/users/zoffixznet/gists{/gist_id}","starred_url":"https://api.github.com/users/zoffixznet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoffixznet/subscriptions","organizations_url":"https://api.github.com/users/zoffixznet/orgs","repos_url":"https://api.github.com/users/zoffixznet/repos","events_url":"https://api.github.com/users/zoffixznet/events{/privacy}","received_events_url":"https://api.github.com/users/zoffixznet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-10-01T17:27:27Z","updated_at":"2016-12-24T10:01:45Z","closed_at":null,"body":"Currrently, `to-json { a => [1, 2, 'b'] };` produces this JSON string `{ \"a\" : [ 1, 2, \"b\" ] }`. All of the spaces between the elements are not needed and the string `{\"a\":[1,2,\"b\"]}` is equivalent. All the extra spaces add unessesary bytes to the generated JSON string, which will likely be transmitted over the Internet or stored in a file.\n### Steps to reproduce:\n\nRun this in the terminal: `perl6 -e 'use JSON::Tiny; say to-json { a => [1, 2, \"b\"] };'`\n### Expected result:\n\nOutputted string is `{\"a\":[1,2,\"b\"]}`\n### Current result:\n\nOutputted string is `{ \"a\" : [ 1, 2, \"b\" ] }`\n"},"comment":{"url":"https://api.github.com/repos/moritz/json/issues/comments/269077863","html_url":"https://github.com/moritz/json/issues/19#issuecomment-269077863","issue_url":"https://api.github.com/repos/moritz/json/issues/19","id":269077863,"user":{"login":"moritz","id":23773,"avatar_url":"https://avatars.githubusercontent.com/u/23773?v=3","gravatar_id":"","url":"https://api.github.com/users/moritz","html_url":"https://github.com/moritz","followers_url":"https://api.github.com/users/moritz/followers","following_url":"https://api.github.com/users/moritz/following{/other_user}","gists_url":"https://api.github.com/users/moritz/gists{/gist_id}","starred_url":"https://api.github.com/users/moritz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moritz/subscriptions","organizations_url":"https://api.github.com/users/moritz/orgs","repos_url":"https://api.github.com/users/moritz/repos","events_url":"https://api.github.com/users/moritz/events{/privacy}","received_events_url":"https://api.github.com/users/moritz/received_events","type":"User","site_admin":false},"created_at":"2016-12-24T10:01:45Z","updated_at":"2016-12-24T10:01:45Z","body":"FWIW this was intentional to make the JSON easier to read.\r\n\r\nBut I'm not proverbially married to this feature; if somebody wants to change it, I'd accept a pull request."}}
{"actor":{"display_login":"moritz"}}