{"action":"created","issue":{"url":"https://api.github.com/repos/prettier/prettier/issues/4333","repository_url":"https://api.github.com/repos/prettier/prettier","labels_url":"https://api.github.com/repos/prettier/prettier/issues/4333/labels{/name}","comments_url":"https://api.github.com/repos/prettier/prettier/issues/4333/comments","events_url":"https://api.github.com/repos/prettier/prettier/issues/4333/events","html_url":"https://github.com/prettier/prettier/pull/4333","id":315064833,"number":4333,"title":"Fix pragma detection/insertion for JSON","user":{"login":"duailibe","id":1574588,"avatar_url":"https://avatars3.githubusercontent.com/u/1574588?v=4","gravatar_id":"","url":"https://api.github.com/users/duailibe","html_url":"https://github.com/duailibe","followers_url":"https://api.github.com/users/duailibe/followers","following_url":"https://api.github.com/users/duailibe/following{/other_user}","gists_url":"https://api.github.com/users/duailibe/gists{/gist_id}","starred_url":"https://api.github.com/users/duailibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duailibe/subscriptions","organizations_url":"https://api.github.com/users/duailibe/orgs","repos_url":"https://api.github.com/users/duailibe/repos","events_url":"https://api.github.com/users/duailibe/events{/privacy}","received_events_url":"https://api.github.com/users/duailibe/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-17T13:40:25Z","updated_at":"2018-04-24T12:49:15Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/prettier/prettier/pulls/4333","html_url":"https://github.com/prettier/prettier/pull/4333","diff_url":"https://github.com/prettier/prettier/pull/4333.diff","patch_url":"https://github.com/prettier/prettier/pull/4333.patch"},"body":"Following https://github.com/prettier/prettier/issues/3557#issuecomment-356280409 we should always format JSON even with `--require-pragma` and never add a comment even with `--insert-pragma`.\r\n\r\nMaking `hasPragma` for JSON always return true makes Prettier always format the JSON file, and stop trying to insert pragma because it thinks the code already has a pragma."},"comment":{"url":"https://api.github.com/repos/prettier/prettier/issues/comments/383917883","html_url":"https://github.com/prettier/prettier/pull/4333#issuecomment-383917883","issue_url":"https://api.github.com/repos/prettier/prettier/issues/4333","id":383917883,"user":{"login":"duailibe","id":1574588,"avatar_url":"https://avatars3.githubusercontent.com/u/1574588?v=4","gravatar_id":"","url":"https://api.github.com/users/duailibe","html_url":"https://github.com/duailibe","followers_url":"https://api.github.com/users/duailibe/followers","following_url":"https://api.github.com/users/duailibe/following{/other_user}","gists_url":"https://api.github.com/users/duailibe/gists{/gist_id}","starred_url":"https://api.github.com/users/duailibe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duailibe/subscriptions","organizations_url":"https://api.github.com/users/duailibe/orgs","repos_url":"https://api.github.com/users/duailibe/repos","events_url":"https://api.github.com/users/duailibe/events{/privacy}","received_events_url":"https://api.github.com/users/duailibe/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T12:49:15Z","updated_at":"2018-04-24T12:49:15Z","author_association":"COLLABORATOR","body":"@ikatyang Yeah, I think when we add JSON5 \"proper\" support, we can also make the correspondent pragma changes"}}
{"actor":{"display_login":"duailibe"}}