{"action":"created","issue":{"url":"https://api.github.com/repos/google/gson/issues/1208","repository_url":"https://api.github.com/repos/google/gson","labels_url":"https://api.github.com/repos/google/gson/issues/1208/labels{/name}","comments_url":"https://api.github.com/repos/google/gson/issues/1208/comments","events_url":"https://api.github.com/repos/google/gson/issues/1208/events","html_url":"https://github.com/google/gson/issues/1208","id":282540955,"number":1208,"title":"Why is the JsonParser always lenient?","user":{"login":"xfxyjwf","id":8551050,"avatar_url":"https://avatars0.githubusercontent.com/u/8551050?v=4","gravatar_id":"","url":"https://api.github.com/users/xfxyjwf","html_url":"https://github.com/xfxyjwf","followers_url":"https://api.github.com/users/xfxyjwf/followers","following_url":"https://api.github.com/users/xfxyjwf/following{/other_user}","gists_url":"https://api.github.com/users/xfxyjwf/gists{/gist_id}","starred_url":"https://api.github.com/users/xfxyjwf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xfxyjwf/subscriptions","organizations_url":"https://api.github.com/users/xfxyjwf/orgs","repos_url":"https://api.github.com/users/xfxyjwf/repos","events_url":"https://api.github.com/users/xfxyjwf/events{/privacy}","received_events_url":"https://api.github.com/users/xfxyjwf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-12-15T20:35:47Z","updated_at":"2017-12-15T20:40:43Z","closed_at":null,"author_association":"MEMBER","body":"See this line:\r\nhttps://github.com/google/gson/blob/6b20e3aaec0b3280f01c7785b5dd391ab6de9cc7/gson/src/main/java/com/google/gson/JsonParser.java#L82\r\n\r\nIt basically makes the JsonReader.setLenient() API useless. \r\n\r\nHow can we make the parser strict? For reference this is for http://b/34734814"},"comment":{"url":"https://api.github.com/repos/google/gson/issues/comments/352106600","html_url":"https://github.com/google/gson/issues/1208#issuecomment-352106600","issue_url":"https://api.github.com/repos/google/gson/issues/1208","id":352106600,"user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars0.githubusercontent.com/u/66577?v=4","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T20:40:43Z","updated_at":"2017-12-15T20:40:43Z","author_association":"MEMBER","body":"You can call `getAdapter(type).fromJson(gson.newJsonReader(input))` instead of just `fromJson(input)` to get strict parsing. We should really deprecate all of the `fromJson` methods and add new versions that are strict by default.\r\n\r\nThe reason is bad decisions long ago that we can no longer change 😢 "}}
{"actor":{"display_login":"JakeWharton"}}