Transforming JSON Documents with XQuery
It is possible to transform JSON documents through XQuery processing. To do so, follow these steps:
- Create an XQuery file.
- Create a new XQuery transformation scenario for your XQuery file.
- 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.
- 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.