Formulas for

Convert XML to JSON

Data Conversion1 credit/cellSheets · Excel
=VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>")

Turn XML into JSON from a cell. Returns structured JSON down a column — Google Sheets or Excel, no code.

It's one of 250+ live sources you reach with a single =VERVE() function — served from APIVerve's production data engine, billed at 1 credit per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.

Convert by the row

Fill =VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>") beside a column of input and get the converted value back for every row — a batch conversion done in one drag.

No parser, no export

Turn one format into another right in the cell instead of round-tripping through a script or an online tool.

Feed the next step

Pipe the converted value straight into the formula or chart that needs it.

The same function works in both apps — install once, sign in with your key, and type it into any cell.

Google SheetsAdd-on

Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.

=VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>")
Microsoft ExcelAdd-in

Same source, same arguments, same key — in Excel on desktop, the web, or mobile. Excel namespaces it as VERVE.CALL. Drag to fill a whole column.

=VERVE.CALL("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>")

Add a field name as the last argument to land just that value in the cell.

  • Note
    =VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>", "field", "note")
  • Note › Children
    =VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>", "field", "note.children")
  • Note › Children › To › Content
    =VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>", "field", "note.children.0.to.content")

Convert XML to JSON, answered

Everything you need to wire it into a sheet.

How do I pull Convert XML to JSON into Google Sheets?
Install the VerveSheets add-on, sign in once with your key, and type =VERVE("xmltojson", "<?xml version=""1.0"" encoding=""UTF-8""?>"&CHAR(10)&"<note>"&CHAR(10)&" <to>Tove</to>"&CHAR(10)&" <from>Jani</from>"&CHAR(10)&" <heading>Reminder</heading>"&CHAR(10)&" <body>Don't forget me this weekend!</body>"&CHAR(10)&"</note>", "field", "note") into any cell. The "field" argument names the value you want back, so the cell resolves to a single number or string you can chart, sort, or feed into another formula.
What data can I pull from Convert XML to JSON?
Convert XML to JSON returns note, note.children and note.children.0.to.content — name any one of them as the "field" argument and that value lands in the cell. Leave the field out and the whole record spills into a two-column table instead.
Can I fill a whole column of Convert XML to JSON at once?
Yes. Put your xml values down a column and point the formula at the range — A2:A50 instead of A2 — and one call returns a value for every row. Dragging the formula down works too, but the range form is a single billed call per column rather than one per cell.
How many credits does each Convert XML to JSON cell cost?
Each resolved cell costs 1 credit. A cell only re-bills when it actually refreshes, so a sheet you aren't touching doesn't keep charging.
Does Convert XML to JSON work in Excel as well as Google Sheets?
Yes — same arguments, same key, same fields. Excel namespaces custom functions, so the call is =VERVE.CALL() there and =VERVE() in Google Sheets; nothing else about it changes.

Put Convert XML to JSON in your next spreadsheet. Add the extension, paste the formula, and the cell keeps itself current.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales