MCPcopy Create free account
hub / github.com/apache/storm / parseJson

Method parseJson

storm-client/src/jvm/org/apache/storm/utils/Utils.java:1508–1518  ·  view source on GitHub ↗
(String json)

Source from the content-addressed store, hash-verified

1506 }
1507
1508 public static Map<String, Object> parseJson(String json) {
1509 if (json == null) {
1510 return new HashMap<>();
1511 } else {
1512 try {
1513 return (Map<String, Object>) JSONValue.parseWithException(json);
1514 } catch (ParseException e) {
1515 throw new RuntimeException(e);
1516 }
1517 }
1518 }
1519
1520 public static String memoizedLocalHostname() throws UnknownHostException {
1521 if (memoizedLocalHostnameString == null) {

Callers 9

updateBlobStoreMethod · 0.95
rebalanceMethod · 0.95
prettyPrintKeyValueMethod · 0.95
parseMethod · 0.95
parseMethod · 0.95
addConfigurationsMethod · 0.80
addResourcesMethod · 0.80
addResourceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected