{"action":"closed","issue":{"url":"https://api.github.com/repos/adamhajari/spyre/issues/56","repository_url":"https://api.github.com/repos/adamhajari/spyre","labels_url":"https://api.github.com/repos/adamhajari/spyre/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/adamhajari/spyre/issues/56/comments","events_url":"https://api.github.com/repos/adamhajari/spyre/issues/56/events","html_url":"https://github.com/adamhajari/spyre/issues/56","id":163204409,"number":56,"title":"Unable to handle values with special characters","user":{"login":"VeenitShah","id":1811809,"avatar_url":"https://avatars.githubusercontent.com/u/1811809?v=3","gravatar_id":"","url":"https://api.github.com/users/VeenitShah","html_url":"https://github.com/VeenitShah","followers_url":"https://api.github.com/users/VeenitShah/followers","following_url":"https://api.github.com/users/VeenitShah/following{/other_user}","gists_url":"https://api.github.com/users/VeenitShah/gists{/gist_id}","starred_url":"https://api.github.com/users/VeenitShah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VeenitShah/subscriptions","organizations_url":"https://api.github.com/users/VeenitShah/orgs","repos_url":"https://api.github.com/users/VeenitShah/repos","events_url":"https://api.github.com/users/VeenitShah/events{/privacy}","received_events_url":"https://api.github.com/users/VeenitShah/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T16:10:02Z","updated_at":"2016-11-15T22:27:29Z","closed_at":"2016-11-15T22:27:29Z","body":"I have a lot of dirty data with special characters. I want to be able to use a dropdown and select one value of it with contains a `#`. I modified the StockExample to the following - \n\n```\n\"options\" : [ {\"label\": \"Google\", \"value\":\"GOOG\"},\n                                  {\"label\": \"Yahoo\", \"value\":\"YHOO\"},\n                                  {\"label\": \"Apple\", \"value\":\"AAPL\"},\n                                  {\"label\": \"Test\", \"value\": \"TESTVALUE#123\"}]\n```\n\nWhen I select the Test label, I get the following stack trace - \n\n```\nTraceback (most recent call last):\n  File \"/anaconda/lib/python2.7/site-packages/cherrypy/_cprequest.py\", line 670, in respond\n    response.body = self.handler()\n  File \"/anaconda/lib/python2.7/site-packages/cherrypy/lib/encoding.py\", line 220, in __call__\n    self.body = self.oldhandler(*args, **kwargs)\n  File \"/anaconda/lib/python2.7/site-packages/cherrypy/_cpdispatch.py\", line 60, in __call__\n    return self.callable(*self.args, **self.kwargs)\n  File \"/anaconda/lib/python2.7/site-packages/spyre/server.py\", line 216, in table\n    df = self.getTable(args)\n  File \"/anaconda/lib/python2.7/site-packages/spyre/server.py\", line 327, in getTable\n    df = self.getData(params)\n  File \"example.py\", line 39, in getData\n    data = json.loads(result.decode(\"utf8\").replace('finance_charts_json_callback( ','')[:-1])  # strip away the javascript and load json\n  File \"/anaconda/lib/python2.7/json/__init__.py\", line 339, in loads\n    return _default_decoder.decode(s)\n  File \"/anaconda/lib/python2.7/json/decoder.py\", line 364, in decode\n    obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n  File \"/anaconda/lib/python2.7/json/decoder.py\", line 380, in raw_decode\n    obj, end = self.scan_once(s, idx)\nValueError: Expecting property name enclosed in double quotes: line 10 column 1 (char 217)\n```\n"}}
{"actor":{"display_login":"adamhajari"}}