Determining the Trx ID on a JSON message

There are two methods to get the Trx ID from a JSON message. For Trx ID Determination Format you can select JSON or Field Routing.

When Field Routing is selected, choose a JSON definition and select the nodes whose values are picked up as Trx ID.

When JSON is selected, Cloverleaf always gets the first type node value as the Trx ID. For example:

Data:

{
    "Name": "Mike",
    "ID": "12345",
    "Contacts": [
        { "Type": "Home", "Address": "XXX", "Telephone": ["000","12345678"]},
        { "Type": "Work", "Address": "YYY", "Telephone": ["111","87654321"]}
    ],
    "Details": {
        "Sex": "Male",
        "Age": 40
    }
}    

Trx ID: Mike

Data:

{
    "Contacts": [
        { "Type": "Home", "Address": "XXX", "Telephone": ["000","12345678"]},
        { "Type": "Work", "Address": "YYY", "Telephone": ["111","87654321"]}
    ],
    "Name": "Mike",
    "ID": "12345",
    "Details": {
        "Sex": "Male",
        "Age": 40
    }
}