Pass any given instance of a structure as parameter

Hi Guys,

JSON Serializer accepts a Record or a Record List to serialize any given outsystems structure into JSON, now I want to do something like this for one of my Server Actions, in which i will receive any structure and serialize it inside my Server action, this is to avoid having a JSON Serializer before every call to my server action which I already know will be needed. Is it possible? Any workaround somehow?


Thanks

Hi,

Unfortunately there is no workaround. you will have to depend on the JSON serializer.

Regards.

Hi Oscar,

Have a look at the https://www.outsystems.com/forge/component-overview/413/ardojson component.

There is also a demo  app (with download to the oap) https://ardoric.outsystemscloud.com/ardoJSONDemo/P05_ComplexStructures.aspx

There is an action to convert any OutSystems object to JSON.

Regards,

Daniel