JsonBlock Class

Represents a block of JSON data with associated metadata.

Definition

Namespace: GenerativeAI.Core
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public class JsonBlock
Inheritance
Object    JsonBlock

Constructors

JsonBlock Represents a block of JSON data along with its associated line number
JsonBlock(String, Int32, Boolean) Represents a block of JSON data along with its associated line number.

Properties

IsArray Gets or sets a value indicating whether the JSON content represents an array.
Json Gets or sets the JSON content represented as a string.
LineNumber Gets or sets the line number associated with the JSON block.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToObjectT Deserializes the JSON data of the current instance into an object of type T.
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also