always_generate_root_object property

JsonDataLoadOptions.always_generate_root_object property

Gets or sets a flag indicating whether a generated data source will always contain an object for a JSON root element. If a JSON root element contains a single complex property, such an object is not created by default.

@property
def always_generate_root_object(self) -> bool:
    ...

@always_generate_root_object.setter
def always_generate_root_object(self, value: bool):
    ...

Remarks

The default value is False.

See Also