{"action":"opened","issue":{"url":"https://api.github.com/repos/influxdb/influxdb-python/issues/195","labels_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/195/comments","events_url":"https://api.github.com/repos/influxdb/influxdb-python/issues/195/events","html_url":"https://github.com/influxdb/influxdb-python/issues/195","id":88322140,"number":195,"title":"Writting NaN values makes the Client to fail","user":{"login":"svernede","id":4927369,"avatar_url":"https://avatars.githubusercontent.com/u/4927369?v=3","gravatar_id":"","url":"https://api.github.com/users/svernede","html_url":"https://github.com/svernede","followers_url":"https://api.github.com/users/svernede/followers","following_url":"https://api.github.com/users/svernede/following{/other_user}","gists_url":"https://api.github.com/users/svernede/gists{/gist_id}","starred_url":"https://api.github.com/users/svernede/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/svernede/subscriptions","organizations_url":"https://api.github.com/users/svernede/orgs","repos_url":"https://api.github.com/users/svernede/repos","events_url":"https://api.github.com/users/svernede/events{/privacy}","received_events_url":"https://api.github.com/users/svernede/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-15T05:29:13Z","updated_at":"2015-06-15T05:29:13Z","closed_at":null,"body":"Writting a `NaN` value makes the Client to fail. Only tested with influxdb08 \r\n\r\nwith the DataFrameClient\r\n\r\n```\r\nimport pandas as pd\r\nfrom influxdb.influxdb08  import DataFrameClient\r\ndata = pd.DataFrame({\r\n            'value':[1.5,float('Nan'),3.2]},\r\n             index=pd.date_range('01-01-2015', periods=3, freq='D'))\r\n\r\nclient = DataFrameClient(host, port, user, password, dbname)\r\n\r\nclient.write_points({'test':data})\r\n```\r\nraises the error\r\n\r\n```\r\n<class \\'influxdb.influxdb08.client.InfluxDBClientError\\'> : 400: b\"invalid character \\'N\\' looking for beginning of value\"\r\n```\r\n\r\nThe client tries to write the value `NaN` which is not a valid JSON value. Python `NaN` should be mapped to JSON `null`. This is coherent with the Pandas usage to encode missing data by `NaN`"}}