{"action":"created","issue":{"url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/26","labels_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/26/comments","events_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/26/events","html_url":"https://github.com/kenrobbins/python-rapidjson/issues/26","id":106485993,"number":26,"title":"allow_nan on loads?","user":{"login":"kenrobbins","id":189204,"avatar_url":"https://avatars.githubusercontent.com/u/189204?v=3","gravatar_id":"","url":"https://api.github.com/users/kenrobbins","html_url":"https://github.com/kenrobbins","followers_url":"https://api.github.com/users/kenrobbins/followers","following_url":"https://api.github.com/users/kenrobbins/following{/other_user}","gists_url":"https://api.github.com/users/kenrobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/kenrobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenrobbins/subscriptions","organizations_url":"https://api.github.com/users/kenrobbins/orgs","repos_url":"https://api.github.com/users/kenrobbins/repos","events_url":"https://api.github.com/users/kenrobbins/events{/privacy}","received_events_url":"https://api.github.com/users/kenrobbins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-15T06:00:31Z","updated_at":"2015-09-17T16:35:58Z","closed_at":null,"body":"allow_nan is a param on dumps. should it be a param on loads too?"},"comment":{"url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/comments/141142418","html_url":"https://github.com/kenrobbins/python-rapidjson/issues/26#issuecomment-141142418","issue_url":"https://api.github.com/repos/kenrobbins/python-rapidjson/issues/26","id":141142418,"user":{"login":"sontek","id":151924,"avatar_url":"https://avatars.githubusercontent.com/u/151924?v=3","gravatar_id":"","url":"https://api.github.com/users/sontek","html_url":"https://github.com/sontek","followers_url":"https://api.github.com/users/sontek/followers","following_url":"https://api.github.com/users/sontek/following{/other_user}","gists_url":"https://api.github.com/users/sontek/gists{/gist_id}","starred_url":"https://api.github.com/users/sontek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sontek/subscriptions","organizations_url":"https://api.github.com/users/sontek/orgs","repos_url":"https://api.github.com/users/sontek/repos","events_url":"https://api.github.com/users/sontek/events{/privacy}","received_events_url":"https://api.github.com/users/sontek/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T16:35:58Z","updated_at":"2015-09-17T16:35:58Z","body":"The python drivers themselves just load NaN by default:\r\n\r\n```\r\n>>> import json\r\n>>> data = json.dumps(float('inf'))\r\n>>> data\r\n'Infinity'\r\n>>> json.loads(data)\r\ninf\r\n>>> data = json.dumps(float('inf'), allow_nan=False)\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\n  File \"/usr/lib/python2.7/json/__init__.py\", line 250, in dumps\r\n    sort_keys=sort_keys, **kw).encode(obj)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 207, in encode\r\n    chunks = self.iterencode(o, _one_shot=True)\r\n  File \"/usr/lib/python2.7/json/encoder.py\", line 270, in iterencode\r\n    return _iterencode(o, 0)\r\nValueError: Out of range float values are not JSON compliant\r\n```\r\n\r\nWould it help the serializer to know if it needs to load them or not?"}}