---
title: "Discussion on \"Transforming data: from JSON to XML and XML to JSON\" | Hashnode"
description: "Discussion on \"Transforming data: from JSON to XML and XML to JSON\". Transforming data from JSON to XML and XML to JSON with C#\nTable of Contents\n1 Objective2 Data Transfer Object (DTO) and data samples3 Root node / root property    3.1 Add root property to JSON    3.2 Remove root property from JSON4 Transformation   ..."
url: "https://hashnode.com/posts/transforming-data-from-json-to-xml-and-xml-to-json/5f69f65b1c935b2e4c615cca"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Transforming data: from JSON to XML and XML to JSON](https://markusmeyer.hashnode.dev/transforming-data-from-json-to-xml-and-xml-to-json?utm_source=hashnode&utm_medium=feed)

Transforming data from JSON to XML and XML to JSON with C# Table of Contents 1 Objective2 Data Transfer Object (DTO) and data samples3 Root node / root property 3.1 Add root property to JSON 3.2 Remove root property from JSON4 Transformation ...

Sep 22, 2020 · 5 min read · markusmeyer.hashnode.dev  
Read the article

-   [#azure](https://hashnode.com/tag/azure)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#xml](https://hashnode.com/tag/xml)
-   [#json](https://hashnode.com/tag/json)

## Written by

[Markus Meyer](https://hashnode.com/@MarkusMeyer)

@MarkusMeyer · Germany

  
[View profile](https://hashnode.com/@MarkusMeyer)

Technical Advisor @ PlanB. GmbH

I am a developer and architect from Bavaria. I'm focused on Azure technologies. And I love coding in C#.

## Responses 1

Markdown supported · ⌘↵ to post

[Marcio Ordoñez](https://hashnode.com/@MarcioOrdonez)

[May 31, 2021](https://hashnode.com/posts/transforming-data-from-json-to-xml-and-xml-to-json/5f69f65b1c935b2e4c615cca/comment/60b44621241c3d4add68b346)

Not working with Lists.

[Markus Meyer](https://hashnode.com/@MarkusMeyer)

[May 31, 2021](https://hashnode.com/posts/transforming-data-from-json-to-xml-and-xml-to-json/5f69f65b1c935b2e4c615cca/comment/60b44621241c3d4add68b346#reply-60b4bb8ae2c01a517d6c4f24)

I updated the repository with a List:

```
  [XmlElement("children")]
  public List<Child> Children { get; set; }
```

It's working for JSON and XML
