Better tranforming JSON <-> XML