MCPcopy Create free account
hub / github.com/Trinea/android-common / getMap

Method getMap

src/cn/trinea/android/common/util/JSONUtils.java:552–554  ·  view source on GitHub ↗

get map from jsonObject. @param jsonObject key-value pairs json @param key @return if jsonObject is null, return null return JSONUtils#parseKeyAndValueToMap(String)

(JSONObject jsonObject, String key)

Source from the content-addressed store, hash-verified

550 * </ul>
551 */
552 public static Map<String, String> getMap(JSONObject jsonObject, String key) {
553 return JSONUtils.parseKeyAndValueToMap(JSONUtils.getString(jsonObject, key, null));
554 }
555
556 /**
557 * get map from jsonData.

Callers

nothing calls this directly

Calls 2

parseKeyAndValueToMapMethod · 0.95
getStringMethod · 0.95

Tested by

no test coverage detected