@SuppressWarnings("unchecked")
public static Map<String, String> convertToProperties(String s)
- throws SvcLogicException {
+ throws JSONException {
checkNotNull(s, "Input should not be null.");
- try {
JSONObject json = new JSONObject(s);
Map<String, Object> wm = new HashMap<>();
Iterator<String> ii = json.keys();
}
}
return mm;
- } catch (JSONException e) {
- throw new SvcLogicException("Unable to convert JSON to properties" + e.getLocalizedMessage(), e);
- }
}
}