1.String數組轉List
public static void main(String[] args) throws JsonParseException, JsonMappingException, IOException {
String str= "[{\"YHDM\":\"xs126032\",\"ZSXH\":null,\"XM\":\"小飛俠\"}]";
ObjectMapper mapper = new ObjectMapper();
List<Map<String,String>> conList = mapper.readValue(str, List.class);
System.out.println(conList.size());
}