{"action":"opened","issue":{"url":"https://api.github.com/repos/lightning-viz/lightning-python/issues/34","labels_url":"https://api.github.com/repos/lightning-viz/lightning-python/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/lightning-viz/lightning-python/issues/34/comments","events_url":"https://api.github.com/repos/lightning-viz/lightning-python/issues/34/events","html_url":"https://github.com/lightning-viz/lightning-python/issues/34","id":110868544,"number":34,"title":"don't allow NaNs in posted json","user":{"login":"mathisonian","id":1074773,"avatar_url":"https://avatars.githubusercontent.com/u/1074773?v=3","gravatar_id":"","url":"https://api.github.com/users/mathisonian","html_url":"https://github.com/mathisonian","followers_url":"https://api.github.com/users/mathisonian/followers","following_url":"https://api.github.com/users/mathisonian/following{/other_user}","gists_url":"https://api.github.com/users/mathisonian/gists{/gist_id}","starred_url":"https://api.github.com/users/mathisonian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mathisonian/subscriptions","organizations_url":"https://api.github.com/users/mathisonian/orgs","repos_url":"https://api.github.com/users/mathisonian/repos","events_url":"https://api.github.com/users/mathisonian/events{/privacy}","received_events_url":"https://api.github.com/users/mathisonian/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-11T16:57:52Z","updated_at":"2015-10-11T16:57:52Z","closed_at":null,"body":"With the current setup its possible for the python client to send invalid json to the server (causing a hard to debug 500 there), because by default `json.dump` [allows NaNs to be included in the generated json](https://docs.python.org/2/library/json.html#basic-usage). I propose setting `allow_nan=False` in all `json.dump` calls to avoid this and generate a clear error on the client.\r\n\r\ncc @freeman-lab "}}