### Question:
JsonUtils { public static Map<String,HashMap<String, ArrayList<HashMap<String, String>>>> getFileStatusesAsMap(String json) { Map<String,HashMap<String, ArrayList<HashMap<String, String>>>> map = null; JsonFactory factory = new JsonFactory(); ObjectMapper mapper = new ObjectMapper(factory); TypeReference<HashMap<String,HashMap<String, ArrayList<HashMap<String, String>>>>> typeRef = new TypeReference<HashMap<String,HashMap<String, ArrayList<HashMap<String, String>>>>>() {}; try { map = mapper.readValue(json, typeRef); } catch (IOException e) { } return map; }  static String renderAsJsonString(Map<String, Object> map); static String renderAsJsonString(Object obj); static String renderAsJsonString(Object obj, FilterProvider filterProvider, DateFormat dateFormat); static Object getObjectFromJsonString(String json); static Map<String, String> getMapFromJsonString(String json); static Map<String,HashMap<String, ArrayList<HashMap<String, String>>>> getFileStatusesAsMap(String json);  }### Answer:
@Test public void testFileStatusesAsMap() { String json = "{\n" + " \"FileStatuses\":{\n" + " \"FileStatus\":[\n" + " {\n" + " \"accessTime\":0,\n" + " \"blockSize\":0,\n" + " \"childrenNum\":3,\n" + " \"fileId\":16389,\n" + " \"group\":\"supergroup\",\n" + " \"length\":0,\n" + " \"modificationTime\":1581578495905,\n" + " \"owner\":\"hdfs\",\n" + " \"pathSuffix\":\"tmp\",\n" + " \"permission\":\"1777\",\n" + " \"replication\":0,\n" + " \"storagePolicy\":0,\n" + " \"type\":\"DIRECTORY\"\n" + " },\n" + " {\n" + " \"accessTime\":0,\n" + " \"blockSize\":0,\n" + " \"childrenNum\":658,\n" + " \"fileId\":16386,\n" + " \"group\":\"supergroup\",\n" + " \"length\":0,\n" + " \"modificationTime\":1581578527580,\n" + " \"owner\":\"hdfs\",\n" + " \"pathSuffix\":\"user\",\n" + " \"permission\":\"755\",\n" + " \"replication\":0,\n" + " \"storagePolicy\":0,\n" + " \"type\":\"DIRECTORY\"\n" + " } \n" + " ]\n" + " }\n" + "}"; Map<String,HashMap<String, ArrayList<HashMap<String, String>>>> map = JsonUtils.getFileStatusesAsMap(json); assertNotNull(map); }