Edit online

Transforming JSON Documents with XQuery

It is possible to transform JSON documents through XQuery processing. To do so, follow these steps:
  1. Create an XQuery file.
  2. Create a new XQuery transformation scenario for your XQuery file.
  3. Reference the JSON document that you want to transform using one of these two methods:
    • In the transformation scenario, click the Parameters button in the XQuery tab and add a parameter that specifies the URL to your JSON document in its value.
    • Specify the URL to your JSON document in the XQuery file you created.
  4. Run the transformation.
Tip: There is a sample XQuery file in the [OXYGEN_INSTALL_DIR]/samples/json/transform folder that can be used to transform a JSON document.