{"action":"created","issue":{"url":"https://api.github.com/repos/palantir/http-remoting/issues/32","repository_url":"https://api.github.com/repos/palantir/http-remoting","labels_url":"https://api.github.com/repos/palantir/http-remoting/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/palantir/http-remoting/issues/32/comments","events_url":"https://api.github.com/repos/palantir/http-remoting/issues/32/events","html_url":"https://github.com/palantir/http-remoting/issues/32","id":131703125,"number":32,"title":"[Needs Investigation] Returning an Optional<String> when Content-Type=application/json causes unexpected errors","user":{"login":"leeavital","id":1482532,"avatar_url":"https://avatars.githubusercontent.com/u/1482532?v=3","gravatar_id":"","url":"https://api.github.com/users/leeavital","html_url":"https://github.com/leeavital","followers_url":"https://api.github.com/users/leeavital/followers","following_url":"https://api.github.com/users/leeavital/following{/other_user}","gists_url":"https://api.github.com/users/leeavital/gists{/gist_id}","starred_url":"https://api.github.com/users/leeavital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeavital/subscriptions","organizations_url":"https://api.github.com/users/leeavital/orgs","repos_url":"https://api.github.com/users/leeavital/repos","events_url":"https://api.github.com/users/leeavital/events{/privacy}","received_events_url":"https://api.github.com/users/leeavital/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-02-05T17:28:14Z","updated_at":"2016-02-26T00:02:42Z","closed_at":null,"body":"````\r\nException in thread \"main\" feign.FeignException: Unexpected character ('/' (code 47)): maybe a (non-standard) comment? (not recognized as one since Feature 'ALLOW_COMMENTS' not enabled for parser)\r\n at [Source: java.io.BufferedReader@2b662a77; line: 1, column: 2] reading GET http://localhost:8442/.....\r\n    at feign.FeignException.errorReading(FeignException.java:48)\r\n    at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:127)\r\n    at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:71)\r\n    at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:94)\r\n    at com.sun.proxy.$Proxy19.getPath(Unknown Source)\r\n`````\r\n\r\nThis was a problem in 0.3.0 and is still a problem in 0.4.0."},"comment":{"url":"https://api.github.com/repos/palantir/http-remoting/issues/comments/189044550","html_url":"https://github.com/palantir/http-remoting/issues/32#issuecomment-189044550","issue_url":"https://api.github.com/repos/palantir/http-remoting/issues/32","id":189044550,"user":{"login":"leeavital","id":1482532,"avatar_url":"https://avatars.githubusercontent.com/u/1482532?v=3","gravatar_id":"","url":"https://api.github.com/users/leeavital","html_url":"https://github.com/leeavital","followers_url":"https://api.github.com/users/leeavital/followers","following_url":"https://api.github.com/users/leeavital/following{/other_user}","gists_url":"https://api.github.com/users/leeavital/gists{/gist_id}","starred_url":"https://api.github.com/users/leeavital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leeavital/subscriptions","organizations_url":"https://api.github.com/users/leeavital/orgs","repos_url":"https://api.github.com/users/leeavital/repos","events_url":"https://api.github.com/users/leeavital/events{/privacy}","received_events_url":"https://api.github.com/users/leeavital/received_events","type":"User","site_admin":false},"created_at":"2016-02-26T00:02:42Z","updated_at":"2016-02-26T00:02:42Z","body":"I think that they're the in the same family of errors. The problem may be that we're not serializing correctly -- not that we're not deserializaing correctly. \r\n\r\nIn my case, I got `/a/path` instead of `\"/a/path\"`\r\n\r\nIn your case you got `foo` instead of `\"foo\"`"}}