--- title: "JsonToXmlPreparser" slug: "json-to-xml-preparser" updated: 2025-10-21T02:17:43Z published: 2025-10-21T02:17:43Z canonical: "docs.lobstersoftware.com/json-to-xml-preparser" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # JsonToXmlPreparser | **Class name** | com.ebd.hub.datawizard.parser.JsonToXmlPreparser | | --- | --- | ## Description **This preparser is deprecated.** This preparser is able to convert a JSON document into an XML file, which can be parsed by the XML parser. No configuration necessary. **Important note:** The root node to parse the XML file should always be "JsonData". This ensures that multiple records are created if the JSON object is a list. ## Example The file "demo.json" is converted into "demo.xml". ```demo { "termsofpayment1":"", "vat2":"7", "ilnsupp":"123456789", "free_text":"", "orderno":"4711", "vat1":"19", "ilnreceiver":"", "deliverynoteno":"0815", "invoicno":"08154711", "termsofpayment2":"", "currency":"EUR", "ilnbuyer":"400000045687", "complexposition_position":[ { "amount":200, "unit":"PCE", "vat_pos":"19", "itemno_supp":"87490", "content":"Sausages", "positionno":"1", "price":30, "EAN":"3654878784" }, { "amount":1, "unit":"PCE", "vat_pos":"", "itemno_supp":"8786767", "content":"", "positionno":"2", "price":56, "EAN":"546546" } ] } ``` ```demo  0815      7  123456789      08154711  EUR  4711  19  400000045687      87490    19    1    30    3654878784    Sausages    200    PCE        8786767        2    56    546546        1    PCE   ```