If the referenced element has an ID, a corresponding ID-based data structure is used instead of a simple string. If a 1:1 reference exists, the referenced element is directly included rather than being represented as a separate reference.This eliminates unnecessary indirections and ensures that the referenced object is embedded within its parent.