xml->json replacement