Transform Json to Json using template (based on jq tool)
- jq 1.5 transformations
- conversions between xml and json
All orders in the examples
directory can be run without any other service.
In a terminal just to:
RUST_LOG=debug SOURCE_ORDERS=examples/xml_to_xml.json cargo run
More information can be found here
Usage of xml conversions is not straightforward, the json transformation must respect the jxon conventions.
Examples:
xml | json |
---|---|
<?xml version="1.0" encoding="UTF-8"?> |
{"#": {"version": "1.0", "encoding": "UTF-8"}} |
<root Something="value"/> |
{"root":[{"$Something": "value"}]} |
<name type="str">John Doe</name> |
{"name":[{"_": "John Doe","$type": "str"}]} |