Written by

Technical Delivery Master at Deloitte
Question Michael Wood · Nov 30, 2023

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"?

Comments

Ashok Kumar T · Nov 30, 2023

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;
0