BridgeJson class

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public static class BridgeJson

JSON helpers called by generated bridges.

Methods

ReadNullableString

public static string? ReadNullableString(string json)

Decodes a JSON string or null value.

Exceptions

FormatException

json is neither a string nor null.

ReadRequiredString

public static string ReadRequiredString(string json)

Decodes a JSON string value.

Exceptions

FormatException

json is not a JSON string.

WriteErrors

public static void WriteErrors(Utf8JsonWriter writer, INotifyDataErrorInfo viewModel, string propertyName, string jsonName)

Writes the validation errors of propertyName as a JSON string array named jsonName.