### Question:
JsonConversionUtil { public static Map<String, String> fromJson(JSONObject obj) throws JSONException { Map<String, String> result = Maps.newHashMap(); collect(obj, "", result); return result; } private  JsonConversionUtil(); @SuppressWarnings("unchecked") static JSONObject fromRequest(HttpServletRequest request); static Map<String, String> fromJson(JSONObject obj); static boolean isAllLiterals(JSONArray jsonArr);  }### Answer:
@Test public void testJSONToParameterMapParsing() throws Exception { Map<String, String> resultMap = JsonConversionUtil .fromJson(new JSONObject("{a:{b:[{c:\"hello\"},{c:\"hello\"}]}}")); assertEquals(2, resultMap.size()); assertEquals("hello", resultMap.get(".a.b(0).c")); assertEquals("hello", resultMap.get(".a.b(1).c")); }