I am trying to retrieve asset attribute values using REST API.
When there is value defined then it is easy to retrieve values with fixed indexes. for e.g.
DeseralizeResult("objectEntries")( int_Counter)("attributes")(0)("objectAttributeValues")(0)("value")--> purchased date
DeseralizeResult("objectEntries")( int_Counter)("attributes")(1)("objectAttributeValues")(0)("value")--> display (key value)
Issue comes when there is no value supplied in any attributes then this causes fixed pattern to break because no Null value will come as an output.
how to mitigate this problem statement as it will be more complicate when there are n number of no values provided in fields ?
Is there a way to define attribute as mandatory and can take empty values from Admin user?