Question
Matjaz Murko · Jul 23

%JSON.Adaptor and relationship property

Hi.

Why are relationship properties not included in  %JSONExportToString() method even they have cardinality one or parent?

Regards,
Matjaž

Product version: IRIS 2022.1
0
0 81
Discussion (3)1
Log in or sign up to continue

Hi.

I tried to include both of paramaters, but with no success. It looks like %JSON.Adaptor has some limitations...

Regards,
Matjaž

I did some research... Relationship properties with cardinality one or parent are not included by default in JSON serialization. If property is included with parameter %JSONINCLUDE is not enough, because serialization causes infinitive recursion. XData Mapping or %JSONINCLUDE="NONE" in related class should be used to avoid infinitive recursion.

Regards,
Matjaž