structure
Adds a structured representation of the given value to the text content using the specified language.
The method utilizes the language's formatting capabilities to generate a textual representation of the input value and appends it to the content being built by the TextContentBuilder
.
Parameters
The type of the value to be structured.
The JsonStructureLanguage
instance used to format the value into a structured textual representation.
The value of type T
to be formatted and added to the text content.
Adds a structured JSON representation of the given value to the TextContentBuilder.
Parameters
The JsonStructureLanguage instance used for defining the serialization and formatting rules.
The value to be serialized and added to the builder.
The KSerializer instance used to serialize the value into the structured JSON format.