JsonPatch
A struct representing a JSON patch for partial updates to a JSON structure.
A patch value that has been encoded in UTF-8 bytes along with its value kind.
Delegate for propagating get operations from child properties of the containing model.
Delegate for propagating set operations to child properties of the containing model.
Initializes a new instance of JsonPatch with utf8 JSON representing the entire object.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
public void Append(ReadOnlySpan<byte> arrayPath, DateTimeOffset value, StandardFormat format = default)
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends a value to an array at the specified JSON path.
Appends NULL to an array at the specified JSON path.
Determines whether the specified JSON path exists in the patch.
Checks if there is a child property of the given prefix that matches the given property name.
Allows the caller to avoid concatenating the prefix and property name to check for existence.
Gets a boolean value at the specified JSON path.
Gets a byte value at the specified JSON path.
Gets a DateTime value at the specified JSON path.
public DateTimeOffset GetDateTimeOffset(ReadOnlySpan<byte> jsonPath, StandardFormat format = default)
Gets a DateTimeOffset value at the specified JSON path.
Gets a decimal value at the specified JSON path.
Gets a double value at the specified JSON path.
Gets a float value at the specified JSON path.
Gets a Guid value at the specified JSON path.
Gets a Int16 value at the specified JSON path.
Gets a Int32 value at the specified JSON path.
Gets a Int64 value at the specified JSON path.
Gets a Int8 value at the specified JSON path.
Gets the Utf8 JSON value at the specified JSON path.
Gets a nullable primitive value at the specified JSON path.
Gets a string value at the specified JSON path.
Gets a TimeSpan value at the specified JSON path.
Gets a UInt16 value at the specified JSON path.
Gets a UInt32 value at the specified JSON path.
Gets a UInt64 value at the specified JSON path.
Checks if the value at the specified JSON path has been removed.
Removes the value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets a value at the specified JSON path.
Sets NULL at the specified JSON path.
Sets the callbacks for propagating values to/from another JsonPatch on child properties.
Returns a string representation of the object using the specified format.
Tries to get a string value at the specified JSON path.
Tries to get the Utf8 JSON value at the specified JSON path.
public bool TryGetNullableValue<T>(ReadOnlySpan<byte> jsonPath, out Nullable value) where T : struct
Tries to get a UInt16 value at the specified JSON path.
Tries to get a boolean value at the specified JSON path.
Tries to get a byte value at the specified JSON path.
public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out DateTime value, StandardFormat format = default)
Tries to get a DateTime value at the specified JSON path.
public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out DateTimeOffset value, StandardFormat format = default)
Tries to get a DateTimeOffset value at the specified JSON path.
Tries to get a decimal value at the specified JSON path.
Tries to get a double value at the specified JSON path.
Tries to get a float value at the specified JSON path.
Tries to get a Guid value at the specified JSON path.
Tries to get a Int32 value at the specified JSON path.
Tries to get a Int64 value at the specified JSON path.
Tries to get a Int8 value at the specified JSON path.
Tries to get a Int16 value at the specified JSON path.
public bool TryGetValue(ReadOnlySpan<byte> jsonPath, out TimeSpan value, StandardFormat format = default)
Tries to get a TimeSpan value at the specified JSON path.
Tries to get a UInt32 value at the specified JSON path.
Tries to get a UInt64 value at the specified JSON path.
Tries to get a UInt16 value at the specified JSON path.
Tries to get a string value at the specified JSON path.
Writes the JSON representation of the JsonPatch to the specified Utf8JsonWriter for the specified JSON path.
Writes in standard JSON format.
Writes the JSON representation of the JsonPatch to the specified Utf8JsonWriter.