{"action":"created","issue":{"url":"https://api.github.com/repos/akrabat/rka-content-type-renderer/issues/6","repository_url":"https://api.github.com/repos/akrabat/rka-content-type-renderer","labels_url":"https://api.github.com/repos/akrabat/rka-content-type-renderer/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/akrabat/rka-content-type-renderer/issues/6/comments","events_url":"https://api.github.com/repos/akrabat/rka-content-type-renderer/issues/6/events","html_url":"https://github.com/akrabat/rka-content-type-renderer/issues/6","id":301797580,"number":6,"title":"JSON_PRETTY_PRINT as an option","user":{"login":"ctrix","id":1123853,"avatar_url":"https://avatars0.githubusercontent.com/u/1123853?v=4","gravatar_id":"","url":"https://api.github.com/users/ctrix","html_url":"https://github.com/ctrix","followers_url":"https://api.github.com/users/ctrix/followers","following_url":"https://api.github.com/users/ctrix/following{/other_user}","gists_url":"https://api.github.com/users/ctrix/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrix/subscriptions","organizations_url":"https://api.github.com/users/ctrix/orgs","repos_url":"https://api.github.com/users/ctrix/repos","events_url":"https://api.github.com/users/ctrix/events{/privacy}","received_events_url":"https://api.github.com/users/ctrix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-02T15:10:07Z","updated_at":"2018-03-03T21:57:24Z","closed_at":null,"author_association":"NONE","body":"It seems that for the application/json output format, the flag **JSON_PRETTY_PRINT** is always used.\r\n\r\nWhen the output of an API is big, it would be extremely useful to have some option to disable this behaviour and remove that flag.\r\n\r\nIf it makes sense, can you please add this feature ?"},"comment":{"url":"https://api.github.com/repos/akrabat/rka-content-type-renderer/issues/comments/370183072","html_url":"https://github.com/akrabat/rka-content-type-renderer/issues/6#issuecomment-370183072","issue_url":"https://api.github.com/repos/akrabat/rka-content-type-renderer/issues/6","id":370183072,"user":{"login":"ctrix","id":1123853,"avatar_url":"https://avatars0.githubusercontent.com/u/1123853?v=4","gravatar_id":"","url":"https://api.github.com/users/ctrix","html_url":"https://github.com/ctrix","followers_url":"https://api.github.com/users/ctrix/followers","following_url":"https://api.github.com/users/ctrix/following{/other_user}","gists_url":"https://api.github.com/users/ctrix/gists{/gist_id}","starred_url":"https://api.github.com/users/ctrix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctrix/subscriptions","organizations_url":"https://api.github.com/users/ctrix/orgs","repos_url":"https://api.github.com/users/ctrix/repos","events_url":"https://api.github.com/users/ctrix/events{/privacy}","received_events_url":"https://api.github.com/users/ctrix/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T21:57:24Z","updated_at":"2018-03-03T21:57:24Z","author_association":"NONE","body":"Hello Akrabat, thanks.\r\nI think it can work. I only have one doubt:\r\n\r\nIf $pretty is false, you're removing both flags:\r\nJSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES\r\n\r\nShouldn't JSON_UNESCAPED_SLASHES be preserved and set in all cases ? (mainly for backward compatibility)\r\n\r\n\r\n"}}
{"actor":{"display_login":"ctrix"}}