handlepolyphormicresponse
Service icon

HandlePolyphormicResponse

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 20 May 2024
 by 
0.0
 (0 ratings)
handlepolyphormicresponse

HandlePolyphormicResponse

Details
Modifies the JSON structure by converting a property to an array if it's not already an array and not empty From example "POAPartiesDetails": { "FirstName": "ZZZ", "SecondName": "ZZZ", "FamilyName": "ZZZ" } To "POAPartiesDetails": [ "FirstName": "ZZZ", "SecondName": "ZZZ", "FamilyName": "ZZZ" ]
Read more

Modifies the JSON structure by converting a property to an array if it's not already an array and not empty. It's basically meant for api which usually tend to have polymorphic response.


I.e for instance a part of the object let's a property name POAPartiesDetails sometimes is sent via array

or sometimes is sent via single element of that particular type.

The extension will basically always this using C#
 


From example 



"POAPartiesDetails": {

"FirstName": "ZZZ",

"SecondName": "ZZZ",

"FamilyName": "ZZZ"



 }  


To 



"POAPartiesDetails": [

"FirstName": "ZZZ",

"SecondName": "ZZZ",

"FamilyName": "ZZZ"



 ]



Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category