### YamlMime:JavaType uid: "com.azure.json.models.JsonArray" fullName: "com.azure.json.models.JsonArray" name: "JsonArray" nameWithType: "JsonArray" summary: "Model representing a JSON array." inheritances: - "" - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - classRef: "java.lang.Object" methodsRef: - "clone" - "equals" - "finalize" - "getClass" - "hashCode" - "notify" - "notifyAll" - "toString" - "wait" - "wait" - "wait" syntax: "public final class **JsonArray**
extends " constructors: - uid: "com.azure.json.models.JsonArray.JsonArray()" fullName: "com.azure.json.models.JsonArray.JsonArray()" name: "JsonArray()" nameWithType: "JsonArray.JsonArray()" summary: "Default constructor." syntax: "public JsonArray()" desc: "Default constructor." methods: - uid: "com.azure.json.models.JsonArray.addElement(com.azure.json.models.JsonElement)" fullName: "com.azure.json.models.JsonArray.addElement(JsonElement element)" name: "addElement(JsonElement element)" nameWithType: "JsonArray.addElement(JsonElement element)" summary: "Adds a JsonElement to the JSON array." parameters: - description: "The JsonElement to add to the array." name: "element" type: "" syntax: "public JsonArray addElement(JsonElement element)" desc: "Adds a JsonElement to the JSON array. This element will be appended to the end of the array." returns: description: "The updated JsonArray object." type: "" - uid: "com.azure.json.models.JsonArray.addElement(int,com.azure.json.models.JsonElement)" fullName: "com.azure.json.models.JsonArray.addElement(int index, JsonElement element)" name: "addElement(int index, JsonElement element)" nameWithType: "JsonArray.addElement(int index, JsonElement element)" summary: "Adds a JsonElement to the JSON array at the specified index." parameters: - description: "The index at which to add the element." name: "index" type: "" - description: "The JsonElement to add to the array." name: "element" type: "" syntax: "public JsonArray addElement(int index, JsonElement element)" desc: "Adds a JsonElement to the JSON array at the specified index. This element will be inserted at the specified index and all elements at or after the index will be shifted." returns: description: "The updated JsonArray object." type: "" - uid: "com.azure.json.models.JsonArray.fromJson(com.azure.json.JsonReader)" fullName: "com.azure.json.models.JsonArray.fromJson(JsonReader jsonReader)" name: "fromJson(JsonReader jsonReader)" nameWithType: "JsonArray.fromJson(JsonReader jsonReader)" summary: "Deserializes a JSON array from a JsonReader." modifiers: - "static" parameters: - description: "The JsonReader to deserialize from." name: "jsonReader" type: "" syntax: "public static JsonArray fromJson(JsonReader jsonReader)" exceptions: - description: "If an error occurs while deserializing the JSON array." type: "IOException" desc: "Deserializes a JSON array 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 array representing the array will be created and returned." returns: description: "The deserialized JSON array." type: "" - uid: "com.azure.json.models.JsonArray.getElement(int)" fullName: "com.azure.json.models.JsonArray.getElement(int index)" name: "getElement(int index)" nameWithType: "JsonArray.getElement(int index)" summary: "Gets the JsonElement at the specified index from the JsonArray." parameters: - description: "The index at which to get the element." name: "index" type: "" syntax: "public JsonElement getElement(int index)" exceptions: - description: "If the index is less than zero or greater than or equal to\n ." type: "IndexOutOfBoundsException" desc: "Gets the JsonElement at the specified index from the JsonArray." returns: description: "The JsonElement at the specified index." type: "" - uid: "com.azure.json.models.JsonArray.isArray()" fullName: "com.azure.json.models.JsonArray.isArray()" name: "isArray()" nameWithType: "JsonArray.isArray()" summary: "Indicates whether the element is an array." overridden: "com.azure.json.models.JsonElement.isArray()" syntax: "public boolean isArray()" desc: "Indicates whether the element is an array." returns: description: "boolean of whether this JsonElement object is of type JsonArray." type: "" - uid: "com.azure.json.models.JsonArray.removeElement(int)" fullName: "com.azure.json.models.JsonArray.removeElement(int index)" name: "removeElement(int index)" nameWithType: "JsonArray.removeElement(int index)" summary: "Removes the JsonElement at the specified index from the JsonArray." parameters: - description: "The index at which to remove the element." name: "index" type: "" syntax: "public JsonElement removeElement(int index)" exceptions: - description: "If the index is less than zero or greater than or equal to\n ." type: "IndexOutOfBoundsException" desc: "Removes the JsonElement at the specified index from the JsonArray. This will shift all elements after the specified index." returns: description: "The removed JsonElement." type: "" - uid: "com.azure.json.models.JsonArray.setElement(int,com.azure.json.models.JsonElement)" fullName: "com.azure.json.models.JsonArray.setElement(int index, JsonElement element)" name: "setElement(int index, JsonElement element)" nameWithType: "JsonArray.setElement(int index, JsonElement element)" summary: "Sets a specified JsonElement object at a specified index within the JsonArray." parameters: - description: "The index at which to set the element." name: "index" type: "" - description: "The JsonElement to set at the specified index." name: "element" type: "" syntax: "public JsonArray setElement(int index, JsonElement element)" desc: "Sets a specified JsonElement object at a specified index within the JsonArray. This will replace the current JsonElement at the specified index with the newly specified JsonElement object." returns: description: "The updated JsonArray object." type: "" - uid: "com.azure.json.models.JsonArray.size()" fullName: "com.azure.json.models.JsonArray.size()" name: "size()" nameWithType: "JsonArray.size()" summary: "The number of elements in the JsonArray." syntax: "public int size()" desc: "The number of elements in the JsonArray." returns: description: "The number of elements in the JsonArray." type: "" - uid: "com.azure.json.models.JsonArray.toJson(com.azure.json.JsonWriter)" fullName: "com.azure.json.models.JsonArray.toJson(JsonWriter jsonWriter)" name: "toJson(JsonWriter jsonWriter)" nameWithType: "JsonArray.toJson(JsonWriter jsonWriter)" parameters: - name: "jsonWriter" type: "" syntax: "public JsonWriter toJson(JsonWriter jsonWriter)" exceptions: - type: "IOException" returns: type: "" - uid: "com.azure.json.models.JsonArray.toJsonString()" fullName: "com.azure.json.models.JsonArray.toJsonString()" name: "toJsonString()" nameWithType: "JsonArray.toJsonString()" syntax: "public String toJsonString()" exceptions: - type: "IOException" returns: type: "String" type: "class" desc: "Model representing a JSON array." metadata: {} package: "com.azure.json.models" artifact: com.azure:azure-json:1.3.0