Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Transform Json to Json using template (based on jq tool)

License

Notifications You must be signed in to change notification settings

media-cloud-ai/rs_json_transform_worker

Repository files navigation

rs_json_transform_worker

Transform Json to Json using template (based on jq tool)

Supports

  • jq 1.5 transformations
  • conversions between xml and json

Examples

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

Warning

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"}]}

About

Transform Json to Json using template (based on jq tool)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published