Official Content

Specifies the Json Input Format for a Structured Data Type.

Values

Unwrapped Does not include a label with the name of the SDT as part of the Json input.
Wrapped Includes a label with the name of the SDT as part of the Json input.

Scope

Objects: Structured Data Type
Generators: .NET, .NET Framework, Java

Description

This property is only taken into account when the Structured Data Type (SDT) is a parameter of an API object.

Json Input Format property applies to the SDT Object. The accepted input format will change depending on the selected value.

Runtime/Design time

This property applies only at design time.

Samples

With the Wrapped (default) value, the accepted input is as follows:

{ "ClientSDT":
         { "id": 1,
            "Name" : "Juan",
           "LastName" : "Valdez",
            "Country" : "Colombia"
         }
}

With the Unwrapped value, the accepted input is as follows:

 { "id": 1,
    "Name" : "Juan",
    "LastName" : "Valdez",
    "Country" : "Colombia"
}

How to apply changes

To apply the corresponding changes when the property value is configured, execute a Rebuild All.

Availability

This property is available since GeneXus 18 upgrade 1.

See Also

Structured Data Type Properties

Last update: November 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant