<PackageReference Include="Google.Protobuf" Version="3.35.0" />

Google.Protobuf.JsonParser

public sealed class JsonParser
Reflection-based converter from JSON to messages.
public sealed class Settings

Settings controlling JSON parsing.

public static JsonParser Default { get; }

Returns a formatter using the default settings.

public JsonParser(Settings settings)

Creates a new formatted with the given settings.

public T Parse<T>(string json) where T : IMessage

Parses json into a new message.

public T Parse<T>(TextReader jsonReader) where T : IMessage

Parses JSON read from jsonReader into a new message.

public IMessage Parse(string json, MessageDescriptor descriptor)

Parses json into a new message.

public IMessage Parse(TextReader jsonReader, MessageDescriptor descriptor)

Parses JSON read from jsonReader into a new message.