Update 4 Sep 2018: Now available in CPI as well.
Update 11 Sep 2015: New parameters escapeInvalidNameStartChar and mangleInvalidNameChar to handle behavior if there are invalid characters for XML element names. Order of fields in XML output now also follows order of fields in JSON input
Update 2 Apr 2015: New parameters allowArrayAtTop and topArrayName to handle JSON Array at top level of JSON content
Update 25 Mar 2015: JSONTransformBeanBean has been refactored to be part of FormatConversionBean. Parameter conversionType replaced with converterClass. Note that some of the screenshots are not updated to reflect the new parameter converterClass
Number | Module Name | Type | Module Key |
---|---|---|---|
<Depending on position of module in chain> 1) Asynchronous scenario, Normally before the last module in channels 2) Synchronous scenario, Before last module to convert request payload After last module to convert response payload | Custom_AF_Modules/FormatConversionBean | Local Enterprise Bean | <Any Arbitrary Value> |
Parameter Name | Allowed values | Default value | Remarks |
---|---|---|---|
converterClass | PI - com.equalize.xpi.af.modules.json.JSON2XMLConverter CPI -com.equalize.converter.core.JSON2XMLConverter | Required field. Determines conversion class | |
documentName | Required field. Document name of root element of XML output | ||
documentNamespace | Required field. Namespace of root element of XML output | ||
indentFactor | Integer values beginning from 1 | 0 | Determines the number of indentation spaces for each level in the XML output |
allowArrayAtTop | Y, N | N | Determines if a JSON Array at the top level (input beginning with [) is allowed |
topArrayName | Name of the top level JSON Array. Required field when allowArrayAtTop = 'Y' | ||
escapeInvalidNameStartChar | N | First character of XML element name is validated. Character is escaped if it is not a valid name start character. Examples: 64bit --> __64bit, $money --> __u0024money | |
mangleInvalidNameChar | N | Second and subsequent characters of XML element name are validated. Characters are mangled using the corresponding unicode number they are not valid name character. Example: field[a] --> field__u005ba__u005d | |
messageLog | pre, post | Saves a log version of the message that is viewable in Message Monitor
Available only in PI | |
logLocation | Name of log version when messageLog is populated. Location defaulted to value in messageLog if logLocation not populated. Available only in PI |
Parameter Name | Parameter Value |
---|---|
converterClass | com.equalize.xpi.af.modules.json.JSON2XMLConverter |
documentName | MT_JSON2XML |
documentNamespace | urn:equalize:com |
indentFactor | 2 |
Input | { "glossary": { "title": "example glossary", "GlossDiv": { "title": "S", "GlossList": { "GlossEntry": { "ID": "SGML", "SortAs": "SGML", "GlossTerm": "Standard Generalized Markup Language", "Acronym": "SGML", "Abbrev": "ISO 8879:1986", "GlossDef": { "para": "A meta-markup language, used to create markup languages such as DocBook.", "GlossSeeAlso": ["GML", "XML"] }, "GlossSee": "markup" } } } } } |
Output |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
37 | |
10 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 | |
2 | |
2 |