### YamlMime:JavaType
uid: "com.azure.json.models.JsonString"
fullName: "com.azure.json.models.JsonString"
name: "JsonString"
nameWithType: "JsonString"
summary: "Class representing the JSON string type"
inheritances:
- ""
- ""
inheritedClassMethods:
- classRef: ""
methodsRef:
- ""
- ""
- ""
- ""
- ""
- ""
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **JsonString** extends "
constructors:
- uid: "com.azure.json.models.JsonString.JsonString(java.lang.String)"
fullName: "com.azure.json.models.JsonString.JsonString(String value)"
name: "JsonString(String value)"
nameWithType: "JsonString.JsonString(String value)"
summary: "Constructor used to explicitly set the string value of the JsonString object."
parameters:
- description: "specifies the text string this JsonString object represents"
name: "value"
type: "String"
syntax: "public JsonString(String value)"
desc: "Constructor used to explicitly set the string value of the JsonString object. Adds the starting and ending double quotation marks."
methods:
- uid: "com.azure.json.models.JsonString.fromJson(com.azure.json.JsonReader)"
fullName: "com.azure.json.models.JsonString.fromJson(JsonReader jsonReader)"
name: "fromJson(JsonReader jsonReader)"
nameWithType: "JsonString.fromJson(JsonReader jsonReader)"
summary: "Deserializes a JSON string from a JsonReader."
modifiers:
- "static"
parameters:
- description: "The JsonReader to deserialize from."
name: "jsonReader"
type: ""
syntax: "public static JsonString fromJson(JsonReader jsonReader)"
exceptions:
- description: "If an error occurs while deserializing the JSON string."
type: "IOException"
desc: "Deserializes a JSON string from a JsonReader.\n\nIf the JsonReader's current token is null, it is assumed the JsonReader hasn't begun reading and will be called to begin reading.\n\nAfter ensuring the JsonReader has begun reading, if the current token is not , an will be thrown. Otherwise, a JSON string representing the string value will be created and returned."
returns:
description: "The deserialized JSON string."
type: ""
- uid: "com.azure.json.models.JsonString.getValue()"
fullName: "com.azure.json.models.JsonString.getValue()"
name: "getValue()"
nameWithType: "JsonString.getValue()"
summary: "Gets the string value of this JsonString object."
syntax: "public String getValue()"
desc: "Gets the string value of this JsonString object."
returns:
description: "the string value of this JsonString object"
type: "String"
- uid: "com.azure.json.models.JsonString.isString()"
fullName: "com.azure.json.models.JsonString.isString()"
name: "isString()"
nameWithType: "JsonString.isString()"
summary: "Indicates whether the element is a string."
overridden: "com.azure.json.models.JsonElement.isString()"
syntax: "public boolean isString()"
desc: "Indicates whether the element is a string."
returns:
description: "boolean of whether this JsonElement object is of type JsonString."
type: ""
- uid: "com.azure.json.models.JsonString.toJson(com.azure.json.JsonWriter)"
fullName: "com.azure.json.models.JsonString.toJson(JsonWriter jsonWriter)"
name: "toJson(JsonWriter jsonWriter)"
nameWithType: "JsonString.toJson(JsonWriter jsonWriter)"
parameters:
- name: "jsonWriter"
type: ""
syntax: "public JsonWriter toJson(JsonWriter jsonWriter)"
exceptions:
- type: "IOException"
returns:
type: ""
- uid: "com.azure.json.models.JsonString.toJsonString()"
fullName: "com.azure.json.models.JsonString.toJsonString()"
name: "toJsonString()"
nameWithType: "JsonString.toJsonString()"
syntax: "public String toJsonString()"
exceptions:
- type: "IOException"
returns:
type: "String"
type: "class"
desc: "Class representing the JSON string type"
metadata: {}
package: "com.azure.json.models"
artifact: com.azure:azure-json:1.3.0