Skip to content

JSON: empty json collection is not correctly materialized, but rather returned as null #31731

@maumar

Description

@maumar

related to #29348

even when the json for the collection is set to [] we still materialize it as null. This is because in IncludeJsonEntityCollection we only run fixup code if there is entity in the collection to be fixed up to the parent. And the problem is that the fixup is what generates the collection instance. We should probably have a separate call to generate the collection (when the JSON for it is not null) and run the element fixup independently of the collection creation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions