JSON to XML

See how a JSON string and a boolean appear in a UTF-8 XML document.

See how a JSON string and a boolean appear in a UTF-8 XML document.

How to use

  1. Load the object containing Tea & coffee and active set to false.
  2. Convert the sample and open the XML source in a text editor.
  3. Inspect the encoding declaration and the name and active elements beneath root.

Worked example

Input

{"name":"Tea & coffee","active":false}

Expected result

<?xml version="1.0" encoding="UTF-8"?>
<root>
  <name>Tea &amp; coffee</name>
  <active>false</active>
</root>

Check the result

The name should contain Tea &amp; coffee and active should contain false.

Continue with another guide

Cookie
We care about your data and would love to use cookies to improve your experience.

Learn how we use cookies