{"action":"opened","issue":{"url":"https://api.github.com/repos/tjson/tjson-spec/issues/28","repository_url":"https://api.github.com/repos/tjson/tjson-spec","labels_url":"https://api.github.com/repos/tjson/tjson-spec/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/tjson/tjson-spec/issues/28/comments","events_url":"https://api.github.com/repos/tjson/tjson-spec/issues/28/events","html_url":"https://github.com/tjson/tjson-spec/issues/28","id":186916560,"number":28,"title":"types in keys instead of values?","user":{"login":"wbolster","id":748944,"avatar_url":"https://avatars.githubusercontent.com/u/748944?v=3","gravatar_id":"","url":"https://api.github.com/users/wbolster","html_url":"https://github.com/wbolster","followers_url":"https://api.github.com/users/wbolster/followers","following_url":"https://api.github.com/users/wbolster/following{/other_user}","gists_url":"https://api.github.com/users/wbolster/gists{/gist_id}","starred_url":"https://api.github.com/users/wbolster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wbolster/subscriptions","organizations_url":"https://api.github.com/users/wbolster/orgs","repos_url":"https://api.github.com/users/wbolster/repos","events_url":"https://api.github.com/users/wbolster/events{/privacy}","received_events_url":"https://api.github.com/users/wbolster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-02T20:51:01Z","updated_at":"2016-11-02T20:51:01Z","closed_at":null,"body":"have you considered storing types in keys instead of values? if so, what was the reason not to use that? pros are it would avoid string copying because of substring slicing in many languages (before decoding), and the tag would live on the \"structure level\" (the keys), not the \"value level\".\r\n\r\n(it would not allow for mixed content arrays of strings but that is bad anyway for other reasons.)"}}
{"actor":{"display_login":"wbolster"}}