code: public static <T> T parseJson(String json, Type type) {
          return JSON.parseObject(json, type);
      }
docs: Parse json to object.
  
  @param json json string.
  @param type the type of object.
  @param <T> type.
  
  @return object.