MCPcopy Index your code
hub / github.com/Tencent/APIJSON / getJSONObject

Method getJSONObject

APIJSONORM/src/main/java/apijson/JSON.java:267–271  ·  view source on GitHub ↗

Get a value from a Map and convert to the specified type @param map Source map @param key The key @param Target type @return The converted value

(Map<String, Object> map, String key)

Source from the content-addressed store, hash-verified

265 * @return The converted value
266 */
267 @SuppressWarnings("unchecked")
268 public static <M extends Map<String, Object>> M getJSONObject(Map<String, Object> map, String key) {
269 Object obj = get(map, key);
270 return (M) obj;
271 }
272
273 /**
274 * Get a value from a Map and convert to the specified type

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected