{"action":"created","issue":{"url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/1384","labels_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/1384/labels{/name}","comments_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/1384/comments","events_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/1384/events","html_url":"https://github.com/postmanlabs/postman-app-support/issues/1384","id":103562733,"number":1384,"title":"\"Malformed JSON: Bad string\" response with long JSON responses","user":{"login":"augustoatqounter","id":14003394,"avatar_url":"https://avatars.githubusercontent.com/u/14003394?v=3","gravatar_id":"","url":"https://api.github.com/users/augustoatqounter","html_url":"https://github.com/augustoatqounter","followers_url":"https://api.github.com/users/augustoatqounter/followers","following_url":"https://api.github.com/users/augustoatqounter/following{/other_user}","gists_url":"https://api.github.com/users/augustoatqounter/gists{/gist_id}","starred_url":"https://api.github.com/users/augustoatqounter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augustoatqounter/subscriptions","organizations_url":"https://api.github.com/users/augustoatqounter/orgs","repos_url":"https://api.github.com/users/augustoatqounter/repos","events_url":"https://api.github.com/users/augustoatqounter/events{/privacy}","received_events_url":"https://api.github.com/users/augustoatqounter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-27T18:00:56Z","updated_at":"2015-08-27T20:10:13Z","closed_at":null,"body":"Our API can respond with long JSON responses (over 500 lines). If and only if the JSON response is over a certain limit, it will fail to show with a \"Malformed JSON: Bad string\" message.\r\nWe have tested the JSON response with jsonlint and PHP via Curl and Java are able to parse our JSON response with no issues.\r\nOnly POSTMAN and strangely enough, a Chrome Addon called REST Client, fail. The addon shows invalid characters from line 530 onwards (maybe you use the same library?)\r\nThe same data can also be returned paginated by our API, and when it does there are no issues with POSTMAN (provided any page response is under the 530 line limit) so we have ruled out any invalid characters in our data.\r\nPlease indicate how we can help you reproduce and fix this issue as we use POSTMAN extensively to test our API and it is driving us crazy.\r\n"},"comment":{"url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/comments/135538875","html_url":"https://github.com/postmanlabs/postman-app-support/issues/1384#issuecomment-135538875","issue_url":"https://api.github.com/repos/postmanlabs/postman-app-support/issues/1384","id":135538875,"user":{"login":"augustoatqounter","id":14003394,"avatar_url":"https://avatars.githubusercontent.com/u/14003394?v=3","gravatar_id":"","url":"https://api.github.com/users/augustoatqounter","html_url":"https://github.com/augustoatqounter","followers_url":"https://api.github.com/users/augustoatqounter/followers","following_url":"https://api.github.com/users/augustoatqounter/following{/other_user}","gists_url":"https://api.github.com/users/augustoatqounter/gists{/gist_id}","starred_url":"https://api.github.com/users/augustoatqounter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/augustoatqounter/subscriptions","organizations_url":"https://api.github.com/users/augustoatqounter/orgs","repos_url":"https://api.github.com/users/augustoatqounter/repos","events_url":"https://api.github.com/users/augustoatqounter/events{/privacy}","received_events_url":"https://api.github.com/users/augustoatqounter/received_events","type":"User","site_admin":false},"created_at":"2015-08-27T20:10:13Z","updated_at":"2015-08-27T20:10:13Z","body":"GET with this link (non paginated) fails:\r\n\r\nhttps://api.qounter.com/v1/qBusiness/?bId&uSessionId&dUpdate&tOrder=2&items&page\r\n\r\nGET with these links (paginated) DO NOT fail, despite being the same returned data\r\n\r\nhttps://api.qounter.com/v1/qBusiness/?bId&uSessionId&dUpdate&tOrder=2&items=5&page=1\r\nhttps://api.qounter.com/v1/qBusiness/?bId&uSessionId&dUpdate&tOrder=2&items=5&page=2\r\nhttps://api.qounter.com/v1/qBusiness/?bId&uSessionId&dUpdate&tOrder=2&items=5&page=3\r\n\r\nHeaders:\r\n\r\nX_Service_Key: 3b91cab8-926f-49b6-ba01-postman\r\nX_Auth_Token: 3b109323-71bb-4363-9113-a95f90258654\r\n\r\n"}}