Skip to content

antoniogenaro/runnerty-executor-parse-xml-json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XML/JSON Parser executor for Runnerty:

Configuration sample:

{
  "id": "parse-xml-json_default",
  "type": "runnerty-executor-parse-xml-json"
}

Plan sample:

{
  "id":"parse-xml-json_default",
  "to": "xml",
  "json": {
    "title": "Hello world",
    "description": "Example for XML/JSON parser executor"
  }
}
{
  "id":"parse-xml-json_default",
  "to": "json",
  "xml": "<?xml version='1.0' encoding='UTF-8' standalone='yes'?><root><title>Hello world</title><description>Example for XML/JSON parser executor</description></root>"
}

Plan sample using input files:

{
  "id":"parse-xml-json_default",
  "to": "xml",
  "json_file": "./test/sample.json"
}
{
  "id":"parse-xml-json_default",
  "to": "json",
  "xml_file": "./test/sample.xml"
}

Plan sample using output file:

{
  "id": "parse-xml-json_default",
  "to": "json",
  "xml_file": "./test/sample.xml",
  "output_file": "./test/output.json"
}

Plan sample using options object for json:

{
  "id": "parse-xml-json_default",
  "to": "json",
  "xml_file": "./test/sample.xml",
  "output_file": "./test/output.json",
  "json_options": {
    "attrkey": "attribute",
    "charkey": "value"
  }
}

Plan sample using options object for xml:

{
  "id": "parse-xml-json_default",
  "to": "xml",
  "json_file": "./test/sample.json",
  "output_file": "./test/output.xml",
  "xml_options": {
    "headless": true,
    "cdata": true
  }
}

Options definitions for json_options and xml_options params can be found here:

About

Runnerty module: XML/JSON parser executor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published