{"action":"closed","issue":{"url":"https://api.github.com/repos/buglabs/node-xml2json/issues/93","labels_url":"https://api.github.com/repos/buglabs/node-xml2json/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/buglabs/node-xml2json/issues/93/comments","events_url":"https://api.github.com/repos/buglabs/node-xml2json/issues/93/events","html_url":"https://github.com/buglabs/node-xml2json/issues/93","id":100951201,"number":93,"title":"When converting values with special chars the converter adds additional chars.","user":{"login":"rameshgurunathan","id":13793750,"avatar_url":"https://avatars.githubusercontent.com/u/13793750?v=3","gravatar_id":"","url":"https://api.github.com/users/rameshgurunathan","html_url":"https://github.com/rameshgurunathan","followers_url":"https://api.github.com/users/rameshgurunathan/followers","following_url":"https://api.github.com/users/rameshgurunathan/following{/other_user}","gists_url":"https://api.github.com/users/rameshgurunathan/gists{/gist_id}","starred_url":"https://api.github.com/users/rameshgurunathan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rameshgurunathan/subscriptions","organizations_url":"https://api.github.com/users/rameshgurunathan/orgs","repos_url":"https://api.github.com/users/rameshgurunathan/repos","events_url":"https://api.github.com/users/rameshgurunathan/events{/privacy}","received_events_url":"https://api.github.com/users/rameshgurunathan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-14T07:18:24Z","updated_at":"2015-08-14T08:30:28Z","closed_at":"2015-08-14T08:30:28Z","body":"\r\n\r\n&#39;use strict&#39;\r\n\r\nvar xml2json = require(&#39;xml2json&#39;);\r\n\r\n\r\nvar xml = &#39;&lt;userinfo&gt;&#39;+\r\n           &#39;&lt;username&gt;admin&lt;/username&gt;&#39;+\r\n           &#39;&lt;password&gt;5tT#5Zu&lt;/password&gt;&#39;+\r\n           &#39;&lt;/userinfo&gt;&#39;\r\n\r\nconsole.log(&#39;xml : &#39;+xml);           \r\n\r\nvar json = JSON.parse(xml2json.toJson(xml));\r\nconsole.log(&#39;json : &#39;+JSON.stringify(json,null,2));\r\n\r\nResult :\r\nxml : &lt;userinfo&gt;&lt;username&gt;admin&lt;/username&gt;&lt;password&gt;5tT#5Zu&lt;/password&gt;&lt;/userinfo&gt;\r\njson : {\r\n  &quot;userinfo&quot;: {\r\n    &quot;username&quot;: &quot;admin&quot;,\r\n    &quot;password&quot;: &quot;5tT&amp;amp;#35;5Zu&quot;\r\n  }\r\n}"}}