Skip to content

Null value handling #13

Open
Open
@ThomasOpiolka

Description

@ThomasOpiolka

Null values in an Json like

{ my: null }

should not return null, but render a string.Empty.

Otherwise other providers will try to render the value. In such a case the IDynamicMetaObjectProvider will then use the static DynamicCallSiteCache internally which can lead to the parsed json structure not being released from memory. This is especially problematic if the Json is large and the DynamicCallSiteCache being a static class variable.

I hope this helps someone else as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions