Json To Xml API
https://api.findutils.com/api/tools/json-to-xml/execute Convert a JSON value to one XML document. Keys starting with "@" become attributes and "#text" becomes the element text, the convention xml_to_json writes, so XML survives a round trip. A single-key object names its own root element; anything else (several keys, an array, a single value) is wrapped in one root element, root_name or "root". Arrays repeat their element; a top-level array becomes one <item> per entry. Invalid XML names fall back to <item>. Adds an XML declaration.
Needs an API key. Running a tool needs an API key. Keys are not for sale yet: ask for early access. About API keys
Request body
application/json-
json
string required
JSON string to convert.
-
root_name
string optional
Root element name. When given, the output is always wrapped in it. When omitted, a single-key object names its own root and anything else is wrapped in "root".
-
indent
integer optional
Indent width. 0 emits single-line XML. Default: 2.
Example arguments
Verified{
"json": {
"a": 1
}
} More Data tools
- Api Docs Generator Return API documentation generated from a list of endpoints, as Markdown (with table of contents, request/response examples)…
- Bookmarks Html To Csv Convert a browser bookmarks.html export from Chrome, Firefox, Edge, Safari or any other browser that writes the Netscape bookmark format…
- Bookmarks Json To Html Convert a bookmarks JSON file into a Netscape bookmarks.html that Chrome, Firefox, Edge and Safari import.
- Coupon Code Generator Generate a batch of unique random coupon or promo codes: an optional prefix, a random part of a chosen length and character set (with…
- Csv Dedupe Remove duplicate rows from a CSV or TSV table.
- Csv Diff Compare two CSV or TSV tables by key column and list the rows that were added, removed or changed - a table diff, not a line diff, so rows…