Share via


ContentJsonField Class

public final class ContentJsonField
extends ContentField

JSON field extracted from the content.

Method Summary

Modifier and Type Method and Description
static ContentJsonField fromJson(JsonReader jsonReader)

Reads an instance of ContentJsonField from the JsonReader.

ContentFieldType getType()

Get the type property: Semantic data type of the field value.

BinaryData getValue()

Gets the strongly-typed value of this field.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from ContentField

Methods inherited from java.lang.Object

Method Details

fromJson

public static ContentJsonField fromJson(JsonReader jsonReader)

Reads an instance of ContentJsonField from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContentJsonField if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ContentJsonField.

getType

public ContentFieldType getType()

Get the type property: Semantic data type of the field value.

Overrides:

ContentJsonField.getType()

Returns:

the type value.

getValue

public BinaryData getValue()

Gets the strongly-typed value of this field.

Overrides:

ContentJsonField.getValue()

Returns:

the field value, or null if not available.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ContentJsonField.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to