{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/sails-docs/issues/413","labels_url":"https://api.github.com/repos/balderdashy/sails-docs/issues/413/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/sails-docs/issues/413/comments","events_url":"https://api.github.com/repos/balderdashy/sails-docs/issues/413/events","html_url":"https://github.com/balderdashy/sails-docs/issues/413","id":58054467,"number":413,"title":"No documentation of res.jsonx() - should there be?","user":{"login":"chrisfrancis27","id":273311,"avatar_url":"https://avatars.githubusercontent.com/u/273311?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfrancis27","html_url":"https://github.com/chrisfrancis27","followers_url":"https://api.github.com/users/chrisfrancis27/followers","following_url":"https://api.github.com/users/chrisfrancis27/following{/other_user}","gists_url":"https://api.github.com/users/chrisfrancis27/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfrancis27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfrancis27/subscriptions","organizations_url":"https://api.github.com/users/chrisfrancis27/orgs","repos_url":"https://api.github.com/users/chrisfrancis27/repos","events_url":"https://api.github.com/users/chrisfrancis27/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfrancis27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-18T11:08:27Z","updated_at":"2016-02-01T14:38:09Z","closed_at":null,"body":"I noticed a few usages of `return res.jsonx(data)` throughout parts of the Sails blueprint APIs. It seems like a fairly useful wrapper around JSON/JSON-P response handling. Was it intended to be used externally? If so, happy to submit a pull request with some extra doc info."},"comment":{"url":"https://api.github.com/repos/balderdashy/sails-docs/issues/comments/177997312","html_url":"https://github.com/balderdashy/sails-docs/issues/413#issuecomment-177997312","issue_url":"https://api.github.com/repos/balderdashy/sails-docs/issues/413","id":177997312,"user":{"login":"mikermcneil","id":618009,"avatar_url":"https://avatars.githubusercontent.com/u/618009?v=3","gravatar_id":"","url":"https://api.github.com/users/mikermcneil","html_url":"https://github.com/mikermcneil","followers_url":"https://api.github.com/users/mikermcneil/followers","following_url":"https://api.github.com/users/mikermcneil/following{/other_user}","gists_url":"https://api.github.com/users/mikermcneil/gists{/gist_id}","starred_url":"https://api.github.com/users/mikermcneil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikermcneil/subscriptions","organizations_url":"https://api.github.com/users/mikermcneil/orgs","repos_url":"https://api.github.com/users/mikermcneil/repos","events_url":"https://api.github.com/users/mikermcneil/events{/privacy}","received_events_url":"https://api.github.com/users/mikermcneil/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T14:38:09Z","updated_at":"2016-02-01T14:38:09Z","body":"If someone submits a PR which sets up a first pass at this, happy to add to it and get it merged in. This method is in userland code in generated response files; but was not intended for direct use other places in your app. (That said, we should have a reference page on it that explains that in a note)"}}