Docs/Format Utils/POST /v1/json-to-xml

POST /v1/json-to-xmlConvert JSON to XML

Format Utils lf-format-utils

Turns JSON data into XML tag-style text. Converts a JSON object to a basic XML representation.

Query Parameters

ParameterTypeRequiredDescription
jsonstringNoJSON string

Response Schema

success (boolean): Operation success
xml (string): Converted XML output

cURL Example

curl -X POST 'https://lf-format-utils.laminarforge.dev/v1/json-to-xml' -H 'Authorization: Bearer lf_YourApiKey' -H 'Content-Type: application/json' -d '{"name":"Alice"}'

Python Example

import requests
url = 'https://lf-format-utils.laminarforge.dev/v1/json-to-xml'
headers = {'Authorization': 'Bearer lf_YourApiKey'}
data = {'name': 'Alice'}
response = requests.post(url, headers=headers, json=data)
print(response.json())