{"action":"closed","issue":{"url":"https://api.github.com/repos/mradionov/karma-jasmine-diff-reporter/issues/4","labels_url":"https://api.github.com/repos/mradionov/karma-jasmine-diff-reporter/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/mradionov/karma-jasmine-diff-reporter/issues/4/comments","events_url":"https://api.github.com/repos/mradionov/karma-jasmine-diff-reporter/issues/4/events","html_url":"https://github.com/mradionov/karma-jasmine-diff-reporter/issues/4","id":104729715,"number":4,"title":"Pretty print","user":{"login":"mradionov","id":2007370,"avatar_url":"https://avatars.githubusercontent.com/u/2007370?v=3","gravatar_id":"","url":"https://api.github.com/users/mradionov","html_url":"https://github.com/mradionov","followers_url":"https://api.github.com/users/mradionov/followers","following_url":"https://api.github.com/users/mradionov/following{/other_user}","gists_url":"https://api.github.com/users/mradionov/gists{/gist_id}","starred_url":"https://api.github.com/users/mradionov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mradionov/subscriptions","organizations_url":"https://api.github.com/users/mradionov/orgs","repos_url":"https://api.github.com/users/mradionov/repos","events_url":"https://api.github.com/users/mradionov/events{/privacy}","received_events_url":"https://api.github.com/users/mradionov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mradionov/karma-jasmine-diff-reporter/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-03T16:04:56Z","updated_at":"2015-10-13T07:53:55Z","closed_at":"2015-10-13T07:53:55Z","body":"Implement pretty print option, as it was suggested here: http://stackoverflow.com/a/32280598/1573638\r\n\r\n* option in reporter configuration to turn on/off pretty print\r\n```\r\njasmineDiff: {\r\n    pretty: true\r\n    pretty: false (default)\r\n    pretty: function (objString) {\r\n        return JSON.stringify(objString, null, 4);\r\n    }\r\n}\r\n```\r\n* option to turn on/off pretty print for particular matchers (and custom matchers), because in case of `toThrow` and `toThrowError` pretty print is useless.\r\n\r\n* use only for objects (arrays)\r\n"}}