Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This task transforms an xml document into a JSONML Object.

Image Added


Info

Please refer to http://www.jsonml.org/ for a descripton of the JSONML (JSON Markup Language) format.

Transform from XMLto JSONML

Description

Contains a description of the task, enter the reason for its existence here.

JSON key: description
Default value: Blank

Input

Enter the input to encode or decode here - see Scripts and Macros for details on how to specify macro content.

JSON key: input
Default value: None

Request attribute name

Name of request attribute to store JSONML value within. This request attribute is stored within the context for the currently executing request.

JSON key: target.attribute.name
Default: None

JSON Configuration

Below is a set of example configuration.

Code Block
languagejs
{
  "input": "%{compreq.response:saved}",
  "target.attribute.name": "json",
  "description": "Transform from XML to JSONML",
  "class": "io.ceptor.pipeline.tasks.TransformXmlToJsonMLTask"
}