{"action":"created","issue":{"url":"https://api.github.com/repos/douglascrockford/JSON-java/issues/137","labels_url":"https://api.github.com/repos/douglascrockford/JSON-java/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/douglascrockford/JSON-java/issues/137/comments","events_url":"https://api.github.com/repos/douglascrockford/JSON-java/issues/137/events","html_url":"https://github.com/douglascrockford/JSON-java/issues/137","id":94795877,"number":137,"title":"json with \"content\" attribute name causes XML.toString() to fail","user":{"login":"kleebiz","id":13320888,"avatar_url":"https://avatars.githubusercontent.com/u/13320888?v=3","gravatar_id":"","url":"https://api.github.com/users/kleebiz","html_url":"https://github.com/kleebiz","followers_url":"https://api.github.com/users/kleebiz/followers","following_url":"https://api.github.com/users/kleebiz/following{/other_user}","gists_url":"https://api.github.com/users/kleebiz/gists{/gist_id}","starred_url":"https://api.github.com/users/kleebiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kleebiz/subscriptions","organizations_url":"https://api.github.com/users/kleebiz/orgs","repos_url":"https://api.github.com/users/kleebiz/repos","events_url":"https://api.github.com/users/kleebiz/events{/privacy}","received_events_url":"https://api.github.com/users/kleebiz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-13T19:43:50Z","updated_at":"2015-07-14T01:43:58Z","closed_at":null,"body":"If you have an attribute name of \"content\", XML.toString(json) will fail.  Workaround is to change XML class to use an more unique identifier other than \"content\".\r\n\r\n{\"Profile\": { \"list\": {\"history\": { \"entries\": [{\"deviceId\": \"id\",\"content\": {\"material\": [{\"stuff\": false}]}}]}}}}"},"comment":{"url":"https://api.github.com/repos/douglascrockford/JSON-java/issues/comments/121108487","html_url":"https://github.com/douglascrockford/JSON-java/issues/137#issuecomment-121108487","issue_url":"https://api.github.com/repos/douglascrockford/JSON-java/issues/137","id":121108487,"user":{"login":"stleary","id":5107558,"avatar_url":"https://avatars.githubusercontent.com/u/5107558?v=3","gravatar_id":"","url":"https://api.github.com/users/stleary","html_url":"https://github.com/stleary","followers_url":"https://api.github.com/users/stleary/followers","following_url":"https://api.github.com/users/stleary/following{/other_user}","gists_url":"https://api.github.com/users/stleary/gists{/gist_id}","starred_url":"https://api.github.com/users/stleary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stleary/subscriptions","organizations_url":"https://api.github.com/users/stleary/orgs","repos_url":"https://api.github.com/users/stleary/repos","events_url":"https://api.github.com/users/stleary/events{/privacy}","received_events_url":"https://api.github.com/users/stleary/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T01:43:58Z","updated_at":"2015-07-14T01:43:58Z","body":"Thanks for pointing this out. I don't think changing the \"content\" keyword can happen due to the risk of breaking working code. But at least the API could clearly spell out how and why it is used. So this will be a documentation-only change. Post a comment if you want to work on it."}}