FastJson——Java工具库中的40个常用方法
作者:carzy2024.01.22 15:09浏览量:15简介:本文将介绍FastJson库中的40个常用方法,帮助你更好地理解和使用这个强大的Java工具库。
FastJson是一个高性能的Java语言实现的JSON解析器和生成器,它提供了丰富的API来方便地处理JSON数据。以下是FastJson库中的40个常用方法:
- JSON.parseObject(String json, Type type)
- JSON.parseObject(String json, Type type, Feature… features)
- JSON.toJavaObject(String json, Class
clazz) - JSON.toJavaObject(String json, Type type, Feature… features)
- JSON.toJavaObject(String json, Type type, ParseProcess process)
- JSON.toJavaObject(String json, Class
clazz, Feature… features) - JSON.toJson(Object value)
- JSON.toJson(Object value, SerializerFeature… features)
- JSON.toJson(Object value, Class
clazz) - JSON.toJson(Object value, Type type)
- JSON.toJson(Object value, Type type, SerializerFeature… features)
- JSON.toJson(Object value, Class
clazz, SerializerFeature… features) - JSON.fromJSON(String json, Type type)
- JSON.fromJSON(String json, Type type, ParserConfig config)
- JSON.fromJSON(String json, Class
clazz) - JSON.fromJSON(String json, Class
clazz, ParserConfig config) - JSON.toJsonWithDateFormat(Date date, String pattern)
- JSON.toJsonWithDateFormat(Date date, String pattern, SerializerFeature… features)
- JSON.toJsonWithDateFormat(Date date, String pattern, Class
clazz) - JSON.toJsonWithDateFormat(Date date, String pattern, Class
clazz, SerializerFeature… features) - JSON.toJsonWithDateFormat(Date date, String pattern, Type type)
- JSON.toJsonWithDateFormat(Date date, String pattern, Type type, SerializerFeature… features)
- JSON.toJsonWithDateFormat(Date date, String pattern, Type type, Class
clazz) - JSON.toJsonWithDateFormat(Date date, String pattern, Type type, Class
clazz, SerializerFeature… features) - JSONArray.parseArray(String jsonArrayString)
- JSONArray.parseArray(String jsonArrayString, Type type)
- JSONArray.parseArray(String jsonArrayString, Type type, Feature… features)
- JSONArray.toArray(List
相关文章推荐
发表评论
活动

登录后可评论,请前往 登录 或 注册