java.lang.Object
io.helidon.json.JsonValue
io.helidon.json.JsonString
Represents a JSON string value.
This module is incubating. These APIs may change in any version of Helidon, including backward incompatible changes.
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonStringcreate(byte[] value) Create a JsonString from an array of UTF-8 encoded bytes.static JsonStringCreate a JsonString from a String value.booleaninthashCode()voidtoJson(JsonGenerator generator) Write this JSON value to the provided generator.type()Return the type of this JSON value.value()Return the string value of this JsonString.
-
Method Details
-
create
Create a JsonString from a String value.- Parameters:
value- the string value- Returns:
- a new JsonString
-
create
Create a JsonString from an array of UTF-8 encoded bytes.- Parameters:
value- the UTF-8 encoded string bytes- Returns:
- a new JsonString
-
value
Return the string value of this JsonString.- Returns:
- the string value
-
equals
-
hashCode
public int hashCode() -
type
Description copied from class:JsonValueReturn the type of this JSON value. -
toJson
Description copied from class:JsonValueWrite this JSON value to the provided generator.
-