Skip to content

Overview

Concepts and Principles

Development

Overview

IDEs

API Explorer

Releases

Release Notes

TORO Integrate

Coder Studio

Coder Cloud

Bug Reports

Search

Using the Alias Property

This example service demonstrates how the Alias property works. When the code/aliasForSerializing/PrintPerson.gloop service is ran, it will log an XML and JSON version of the input to the console.

Output of PrintPerson.gloop

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
24/04/18 13:42:26.340 INFO  [Integrate] 
<?xml version="1.0"?>
<input phone number="941-746-6620">
    <firstName>John</firstName>
    <last_name>Doe</last_name>
    <invalidNames _3mail="john.doe@example.com" %grade="97.0">
        <middle-name>Bambi</middle-name>
        <SSN#>220-90-5004</SSN#>
    </invalidNames>
</input>
24/04/18 13:42:26.384 INFO  [Integrate] 
{
    "input": {
        "firstName": "John",
        "last_name": "Doe",
        "invalidNames": {
            "middle-name": "Bambi",
            "SSN#": "220-90-5004",
            "_3mail": "john.doe@example.com",
            "%grade": 97.0
        },
        "phone number": "941-746-6620"
    }
}