--- title: "convert JSON to XML()" slug: "basic-json-to-xml" updated: 2026-08-11T07:37:59Z published: 2026-08-11T07:37:59Z canonical: "docs.lobstersoftware.com/basic-json-to-xml" --- > ## 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. # convert JSON to XML() Converts the content of a JSON file in parameter **a** into XML content. You can use parameter **b** to save the generated XML content into an XML object (DOM). ## Parameters | Parameter | Description | | --- | --- | | a | Value to convert (content of a JSON file). | | b | (optional) If you specify a name here, the generated XML content will be stored in an XML object (DOM). You access this object with function [get value from XML()](/v1/docs/en/xml-get-value), for example. | ## Example We enter the following JSON content in parameter **a**. ```json { "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" } ] } ``` As a result we get the following XML content. ```xml 7 123456789 4711 19 0815 08154711 EUR 400000045687 200 PCE 19 87490 Sausages 1 30 3654878784 1 PCE 8786767 2 56 546546 ``` JSON (**J**ava**S**cript **O**bject **N**otation) is a lightweight text format for data exchange. The Lobster Data Platform handles JSON in integration profiles, web resources, and API interfaces. Value resolvers convert JSON data to internal objects and vice versa. XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data.