Skip to content

Conversation

@ThomasOpiolka
Copy link

Null values in Json render as an empty string instead of returning null

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.

The DynamicCallSiteCache being a limited cache of 15 the memory behaviour in such an edge case can be very unpredictable.

@ThomasOpiolka ThomasOpiolka changed the title Fix JSON Null handling to fix #13 Fix JSON Null handling Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant