Custom Message Class Property Definition
I have a API that is returning on objext with four fields. Two are arrays that are empty. How can I define the message class property to ignore/handle "Messages" and "SharedRelations"?
.png)
Discussion (3)0
Comments
Add %JSONIGNOREINVALIDFIELD param to your class and don't add Messages/SharedRelations properties.
Parameter%JSONIGNOREINVALIDFIELDAs BOOLEAN = 1;Hello @Michael Wood
If those values are not part of the response. Then don't need to worry about it. Code will skip by default. Incase if the property is not defined . Then you have to declare the %JSONIGNOREINVALIDFIELD value as 1 to prevent from that ERROR #9406: Unexpected format for value of field.
Parameter%JSONIGNOREINVALIDFIELDAs BOOLEAN = 1;Worked like a chram. Thanks.