Class Json
java.lang.Object
dev.langchain4j.internal.Json
JSON helper class. It is supposed to be used by "tools" and "structured output" functionalities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe abstract JSON codec interface. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TConvert the given JSON string to an object of the given class.static <T> TConvert the given JSON string to an object of the given type.static StringConvert the given object to JSON.
-
Method Details
-
toJson
-
fromJson
-
fromJson
-