|
static string | GetOptionalString (JToken jtok, string field) |
| Retrieves the optional string property value for the given property name from the given JSON object. More...
|
|
static string | GetRequiredString (JToken jtok, string field) |
| Retrieves the required string property value for the given property name from the given JSON object. More...
|
|
static int | GetRequiredInteger (JToken jtok, string field) |
| Retrieves the required int property value for the given property name from the given JSON object. More...
|
|
static ? bool | GetOptionalBoolean (JToken jtok, string field) |
| Retrieves the optional boolean property value for the given property name from the given JSON object. More...
|
|
Definition at line 26 of file JsonHelper.cs.
◆ GetOptionalBoolean()
static ? bool Avro.JsonHelper.GetOptionalBoolean |
( |
JToken |
jtok, |
|
|
string |
field |
|
) |
| |
|
inlinestatic |
Retrieves the optional boolean property value for the given property name from the given JSON object.
- Parameters
-
jtok | JSON object to read |
field | property name |
- Returns
- null if property doesn't exist, otherise returns property boolean value
Definition at line 86 of file JsonHelper.cs.
◆ GetOptionalString()
static string Avro.JsonHelper.GetOptionalString |
( |
JToken |
jtok, |
|
|
string |
field |
|
) |
| |
|
inlinestatic |
Retrieves the optional string property value for the given property name from the given JSON object.
This throws an exception if property exists but it is not a string.
- Parameters
-
jtok | JSON object to read |
field | property name |
- Returns
- property value if property exists, null if property doesn't exist in the JSON object
Definition at line 35 of file JsonHelper.cs.
◆ GetRequiredInteger()
static int Avro.JsonHelper.GetRequiredInteger |
( |
JToken |
jtok, |
|
|
string |
field |
|
) |
| |
|
inlinestatic |
Retrieves the required int property value for the given property name from the given JSON object.
- Parameters
-
jtok | JSON object to read |
field | property name |
- Returns
- property value
Definition at line 70 of file JsonHelper.cs.
◆ GetRequiredString()
static string Avro.JsonHelper.GetRequiredString |
( |
JToken |
jtok, |
|
|
string |
field |
|
) |
| |
|
inlinestatic |
Retrieves the required string property value for the given property name from the given JSON object.
- Parameters
-
jtok | JSON object to read |
field | property name |
- Returns
- property value
Definition at line 57 of file JsonHelper.cs.
The documentation for this class was generated from the following file:
- _build/public-os_ubuntu24.04-arch_amd64-cc_gcc_13.3.0/install/Avro/src/apache/main/Schema/JsonHelper.cs