EDennis.JsonUtils

Json serialization without self-referencing loops and with optional filtering of specified properties.


Keywords
License
MIT
Install
Install-Package EDennis.JsonUtils -Version 3.2.9

Documentation

JsonUtils

Contains a JSON.NET JsonConverter that prevents self-referencing loops and allows specifying of (a) max-depth for serialization, (b) ignoring of specified properties, and (c) modulo operations on specified integral properties. The modulo operations can be used to create "Equivalence Class Ids" -- Ids that can be seen as constant across deletions and re-inserts, despite having an auto-increment, sequence-driven real value in a shared database environment. This library is used by EDennis.NetCoreTestingUtilities for comparing object via serialization to json, with optional filtering.