MCPcopy
hub / github.com/GitbookIO/gitbook / json2xml

Function json2xml

packages/react-openapi/src/json2xml.ts:6–8  ·  view source on GitHub ↗
(data: Record<string, any>)

Source from the content-addressed store, hash-verified

4 * This function converts an object to XML.
5 */
6export function json2xml(data: Record<string, any>) {
7 return jsXml.toXmlString(data, { beautify: true });
8}

Callers 3

convertBodyToXMLFunction · 0.90
json2xml.test.tsFile · 0.90
stringifyExampleFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected