{"action":"opened","issue":{"url":"https://api.github.com/repos/dnvriend/akka-http-test/issues/6","repository_url":"https://api.github.com/repos/dnvriend/akka-http-test","labels_url":"https://api.github.com/repos/dnvriend/akka-http-test/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/dnvriend/akka-http-test/issues/6/comments","events_url":"https://api.github.com/repos/dnvriend/akka-http-test/issues/6/events","html_url":"https://github.com/dnvriend/akka-http-test/issues/6","id":157639805,"number":6,"title":"XML output from Marshaller","user":{"login":"dantodor","id":5310618,"avatar_url":"https://avatars.githubusercontent.com/u/5310618?v=3","gravatar_id":"","url":"https://api.github.com/users/dantodor","html_url":"https://github.com/dantodor","followers_url":"https://api.github.com/users/dantodor/followers","following_url":"https://api.github.com/users/dantodor/following{/other_user}","gists_url":"https://api.github.com/users/dantodor/gists{/gist_id}","starred_url":"https://api.github.com/users/dantodor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantodor/subscriptions","organizations_url":"https://api.github.com/users/dantodor/orgs","repos_url":"https://api.github.com/users/dantodor/repos","events_url":"https://api.github.com/users/dantodor/events{/privacy}","received_events_url":"https://api.github.com/users/dantodor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-31T10:31:26Z","updated_at":"2016-05-31T10:31:26Z","closed_at":null,"body":"I think there might be a problem with the array marshaller. \r\nIf you call the endpoint with \"Accept: application/xml\" , the XML response is syntactically correct, but the result is doubled. My guess would be replacing this:\r\n\r\n```\r\nSource.fromIterator(() ⇒ persons.iterator).mapAsync(1) { person ⇒\r\n            Marshal(persons.map(person ⇒ PersonV2(person.name, person.age, person.married))).to[NodeSeq]\r\n          }.map(ns ⇒ ByteString(ns.toString))\r\n```\r\n\r\nwith this:\r\n\r\n```\r\nSource.fromIterator(() ⇒ persons.iterator).mapAsync(1) { person ⇒\r\n            Marshal(PersonV2(person.name, person.age, person.married)).to[NodeSeq]\r\n          }.map(ns ⇒ ByteString(ns.toString))\r\n\r\n```\r\nBasically I think you're going through the same iterator twice :)\r\n"}}
{"actor":{"display_login":"dantodor"}}