{"action":"created","issue":{"url":"https://api.github.com/repos/smartrics/RestFixture/issues/191","repository_url":"https://api.github.com/repos/smartrics/RestFixture","labels_url":"https://api.github.com/repos/smartrics/RestFixture/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/smartrics/RestFixture/issues/191/comments","events_url":"https://api.github.com/repos/smartrics/RestFixture/issues/191/events","html_url":"https://github.com/smartrics/RestFixture/issues/191","id":157286585,"number":191,"title":"Issue in converting the Map to JSON on the output","user":{"login":"kadimulam","id":18126158,"avatar_url":"https://avatars.githubusercontent.com/u/18126158?v=3","gravatar_id":"","url":"https://api.github.com/users/kadimulam","html_url":"https://github.com/kadimulam","followers_url":"https://api.github.com/users/kadimulam/followers","following_url":"https://api.github.com/users/kadimulam/following{/other_user}","gists_url":"https://api.github.com/users/kadimulam/gists{/gist_id}","starred_url":"https://api.github.com/users/kadimulam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadimulam/subscriptions","organizations_url":"https://api.github.com/users/kadimulam/orgs","repos_url":"https://api.github.com/users/kadimulam/repos","events_url":"https://api.github.com/users/kadimulam/events{/privacy}","received_events_url":"https://api.github.com/users/kadimulam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-27T20:39:03Z","updated_at":"2016-05-28T10:46:24Z","closed_at":null,"body":"We noticed that when the response body contains a Map (example below), the RestFixture is failing to convert it into JSON. The same response body is getting converted when we give the request via Advanced Rest Client.\r\n\r\n        Map<Integer, Employee> employeeMap= new HashMap<Integer, Employee>();\r\n        Employee employee = new Employee();\r\n        employee.setSal(1.23);\r\n        employee.setName(\"Test\");\r\n        map.put(new Integer(1), employee);\r\n\r\nThe JSON response is as below when using FitNesse (assume employeeMap is part of a outer object)\r\n{\r\n\r\n  \"employeeMap\" : { \r\n    \"1\" : \"**org.mozilla.javascript.UniqueTag@9225652: NOT_FOUND**\"\r\n  }\r\n\r\n}\r\n\r\nPlease advice.\r\n"},"comment":{"url":"https://api.github.com/repos/smartrics/RestFixture/issues/comments/222302270","html_url":"https://github.com/smartrics/RestFixture/issues/191#issuecomment-222302270","issue_url":"https://api.github.com/repos/smartrics/RestFixture/issues/191","id":222302270,"user":{"login":"kadimulam","id":18126158,"avatar_url":"https://avatars.githubusercontent.com/u/18126158?v=3","gravatar_id":"","url":"https://api.github.com/users/kadimulam","html_url":"https://github.com/kadimulam","followers_url":"https://api.github.com/users/kadimulam/followers","following_url":"https://api.github.com/users/kadimulam/following{/other_user}","gists_url":"https://api.github.com/users/kadimulam/gists{/gist_id}","starred_url":"https://api.github.com/users/kadimulam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadimulam/subscriptions","organizations_url":"https://api.github.com/users/kadimulam/orgs","repos_url":"https://api.github.com/users/kadimulam/repos","events_url":"https://api.github.com/users/kadimulam/events{/privacy}","received_events_url":"https://api.github.com/users/kadimulam/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T10:46:24Z","updated_at":"2016-05-28T10:46:24Z","body":"Ok, if it is the server issue, how is the Chrome Advanced Rest Client is able to parse it to JSON? I  can suspect the server/Spring Controller if the object was not parsed at both FitNesse & Advanced RestClient. In Advanced Rest Client it works just fine."}}
{"actor":{"display_login":"kadimulam"}}