Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Newtonsoft.​Json.​Serialization.​IReferenceResolver
Assembly: Newtonsoft.Json
Used to resolve references when serializing and deserializing JSON by the <see cref="T:Newtonsoft.Json.JsonSerializer" /> .
Methods
object
ResolveReference​(object context,
string reference)
Resolves a reference to its object.
Returns The object that was resolved from the reference.
context
The serialization context.
reference
The reference to resolve.
string
GetReference​(object context,
object value)
Gets the reference for the specified object.
Returns The reference to the object.
context
The serialization context.
value
The object to get a reference for.
bool
IsReferenced​(object context,
object value)
Determines whether the specified object is referenced.
Returns <c>true</c> if the specified object is referenced; otherwise, <c>false</c> .
context
The serialization context.
value
The object to test for a reference.
void
AddReference​(object context,
string reference,
object value)
Adds a reference to the specified object.
context
The serialization context.
reference
The reference.
value
The object to reference.