{"action":"closed","issue":{"url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/84","labels_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/84/comments","events_url":"https://api.github.com/repos/jeroenooms/jsonlite/issues/84/events","html_url":"https://github.com/jeroenooms/jsonlite/issues/84","id":64125625,"number":84,"title":"Do not prettify atomic vectors","user":{"login":"yihui","id":163582,"avatar_url":"https://avatars.githubusercontent.com/u/163582?v=3","gravatar_id":"","url":"https://api.github.com/users/yihui","html_url":"https://github.com/yihui","followers_url":"https://api.github.com/users/yihui/followers","following_url":"https://api.github.com/users/yihui/following{/other_user}","gists_url":"https://api.github.com/users/yihui/gists{/gist_id}","starred_url":"https://api.github.com/users/yihui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yihui/subscriptions","organizations_url":"https://api.github.com/users/yihui/orgs","repos_url":"https://api.github.com/users/yihui/repos","events_url":"https://api.github.com/users/yihui/events{/privacy}","received_events_url":"https://api.github.com/users/yihui/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-03-24T23:22:03Z","updated_at":"2015-04-14T20:33:43Z","closed_at":"2015-04-14T20:33:43Z","body":"This may be a purely aesthetic issue, but you know... why there is no love for XML... :smiling_imp: \r\n\r\nPersonally I do not like vectors to be prettified by adding line breaks after _every_ element. This makes the data less readable to human eyes (well, my eyes). I love the RJSONIO behavior, which is to add the line break only after a row or column vector:\r\n\r\n```r\r\n> jsonlite::toJSON(matrix(1:12, 4))\r\n[[1,5,9],[2,6,10],[3,7,11],[4,8,12]] \r\n> jsonlite::toJSON(matrix(1:12, 4), pretty=TRUE)\r\n[\r\n    [\r\n        1,\r\n        5,\r\n        9\r\n    ],\r\n    [\r\n        2,\r\n        6,\r\n        10\r\n    ],\r\n    [\r\n        3,\r\n        7,\r\n        11\r\n    ],\r\n    [\r\n        4,\r\n        8,\r\n        12\r\n    ]\r\n]\r\n> cat(RJSONIO::toJSON(matrix(1:12, 4)))\r\n[ [ 1, 5, 9 ],\r\n[ 2, 6, 10 ],\r\n[ 3, 7, 11 ],\r\n[ 4, 8, 12 ] ]\r\n```\r\n\r\nCurrently you either get a terribly wide single line of data and you can never make sense of the structure, or a terribly long page of data and you get lost as you scroll down the page, when the data is moderately large. So I'm filing this request to make `pretty = TRUE` prettier :)"}}