protected override void setJSON(JObject obj, BaseClassIfc host, HashSet<int> processed)
{
base.setJSON(obj, host, processed);
if (mRelatingConstraint != host.mIndex)
obj["RelatingConstraint"] = RelatingConstraint.getJson(this, processed);
JArray array = new JArray();
foreach (IfcResourceObjectSelect r in RelatedResourceObjects)
{
IfcResourceConstraintRelationship rcr = r as IfcResourceConstraintRelationship;
if (r.Index != host.mIndex)
array.Add(mDatabase[r.Index].getJson(this, processed));
}
if (array.Count > 0)
obj["RelatedResourceObjects"] = array;
}
}