Class ValueUtils
java.lang.Object
cz.cvut.kbss.jsonld.deserialization.util.ValueUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.json.JsonValue
getValue
(jakarta.json.JsonValue jsonNode) Extracts the value of theJsonLd.VALUE
attribute from the specified JSON object.static Object
literalValue
(jakarta.json.JsonValue value) static String
stringValue
(jakarta.json.JsonValue value) Returns a string representation of the specified JSON value.
-
Method Details
-
getValue
public static jakarta.json.JsonValue getValue(jakarta.json.JsonValue jsonNode) Extracts the value of theJsonLd.VALUE
attribute from the specified JSON object.- Parameters:
jsonNode
- JSON object from which to extract the value- Returns:
- Extracted value
- Throws:
JsonLdDeserializationException
- If the specified node is not a JSON object or if it does not contain a@value
attribute
-
stringValue
Returns a string representation of the specified JSON value.- Parameters:
value
- Value to stringify- Returns:
- String value
-
literalValue
-