Method Parse
Parse(string)
Parses a schema from JSON text.
public AvroSchema Parse(string json)
Parameters
jsonstringThe schema JSON.
Returns
Exceptions
- AvroSchemaException
The JSON is malformed or the schema is invalid.
Parse(ReadOnlySpan<byte>)
Parses a schema from UTF-8 encoded JSON.
public AvroSchema Parse(ReadOnlySpan<byte> utf8Json)
Parameters
utf8JsonReadOnlySpan<byte>The schema JSON as UTF-8 bytes.
Returns
Exceptions
- AvroSchemaException
The JSON is malformed or the schema is invalid.