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.

class System.​Runtime.​InteropServices.​JsonMarshal

Assembly: System.Text.Json

Inheritance: object → JsonMarshal

An unsafe class that provides a set of methods to access the underlying data representations of JSON types.

Methods

public static ReadOnlySpan<​byte>
GetRawUtf8PropertyName​(Text.​Json.​JsonProperty property)
Gets a <see cref="T:System.ReadOnlySpan`1" /> view over the raw JSON data of the given <see cref="T:System.Text.Json.JsonProperty" /> name.
Returns The span containing the raw JSON data of the <paramref name="property" /> name. This will not include the enclosing quotes.
property The JSON property from which to extract the span.
public static ReadOnlySpan<​byte>
GetRawUtf8Value​(Text.​Json.​JsonElement element)
Gets a <see cref="T:System.ReadOnlySpan`1" /> view over the raw JSON data of the given <see cref="T:System.Text.Json.JsonElement" /> .
Returns The span containing the raw JSON data of <paramref name="element" /> .
element The JSON element from which to extract the span.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object