MCPcopy Create free account
hub / github.com/google/gson / getAsJsonArray

Method getAsJsonArray

gson/src/main/java/com/google/gson/JsonObject.java:210–212  ·  view source on GitHub ↗

Convenience method to get the specified member as a JsonArray. @param memberName name of the member being requested. @return the JsonArray corresponding to the specified member, or null if no member with this name exists. @throws ClassCastException if the member is not o

(String memberName)

Source from the content-addressed store, hash-verified

208 * @throws ClassCastException if the member is not of type {@code JsonArray}.
209 */
210 public JsonArray getAsJsonArray(String memberName) {
211 return (JsonArray) members.get(memberName);
212 }
213
214 /**
215 * Convenience method to get the specified member as a {@link JsonObject}.

Calls 1

getMethod · 0.65