JsonFilter.FilterObject<T> method (1 of 2)

Filters data from the specified object.

public T FilterObject<T>(T value)
parameter description
T The type of the object.
value The object instance.

Return Value

A new object with the specified data filtered.

Remarks

This method converts the object to JSON, filtering out data as appropriate, and then converts the filtered JSON back into an object.

See Also


JsonFilter.FilterObject<T> method (2 of 2)

Filters data from the specified object.

public T FilterObject<T>(T value, JsonSettings? settings)
parameter description
T The type of the object.
value The object instance.
settings The settings used when reading/writing JSON.

Return Value

A new object with the specified data filtered.

Remarks

This method converts the object to JSON, filtering out data as appropriate, and then converts the filtered JSON back into an object.

See Also