fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

🚄 FASTJSON2 is a Java JSON library with excellent performance.

Results 679 fastjson2 issues
Sort by recently updated
recently updated
newest added

除了使用频率极高的几个类JSON,JSONObject,JSONArray外,其余的源码几乎没有注释,甚至有大量的类一行注释也没有。希望能在这方面加强一下

documentation

使用版本:2.0.4 Redis序列化使用GenericFastJsonRedisSerializer,存入的是List,获取的时候List接收,提示fastjson2.JSONArray无法转成List

question

版本2.0.4 configureMessageConverters配置如下: FastJsonHttpMessageConverter converter = new FastJsonHttpMessageConverter(); FastJsonConfig config = new FastJsonConfig(); config.setReaderFeatures(JSONReader.Feature.FieldBased, JSONReader.Feature.SupportArrayToBean); config.setWriterFeatures(JSONWriter.Feature.WriteMapNullValue, JSONWriter.Feature.PrettyFormat); converter.setFastJsonConfig(config); converter.setDefaultCharset(StandardCharsets.UTF_8); converter.setSupportedMediaTypes(Collections.singletonList(MediaType.APPLICATION_JSON)); converters.add(0, converter); converters.add(responseBodyConverter()); 序列化elasticsearch的SearchPage,打印测试或者前端获取少了一些属性,例如:searchHits、sort、totalElements等 fastjson1.2.83没有这种问题

bug

这个异常在1.x版本和2.0.2版本均没有出现,在2.0.3版本出现了 下面是我的代码 ```java Admin admin = JSON.parseObject(JSON.toJSONString(adminLoginForm), Admin.class); adminLoginForm: public class AdminLoginForm { /** * 管理员账号 */ @NotBlank(message = "用户名不能为空") @Length(min = 2, max = 20, message = "用户名长度为{min}-{max}位") @Pattern(regexp...

bug

优化大对象 序列化 反序列化的内存占用

It would be nice to have more documentation in English, or even in Spanish as it was write on the ISSUE Documentation in English or Spanish #4056 in the first...

documentation
enhancement

Jsonb 与 CBOR 在功能上有何区别?不是多此一举吗?

question

版本从1.2.72升级到2.0.14。开启autoType,不支持Object对象接收强转成Java对象,需要先转成JSON对象,再转换成Java对象。 ```java @Autowired public RedisTemplate redisTemplate; @Test public void fastJson(){ /* * redis 数据: * {"@type":"xx.xx.GoodsDetailDTO","goodsName":"HK GOLD香港黄金","goodsPrice":100.00} * * 错误信息: * java.lang.ClassCastException: com.alibaba.fastjson.JSONObject cannot be cast to xx.xx.GoodsDetailDTO */ //@Version...

bug

### 请描述您的需求或者改进建议 *对您想要需求或建议的清晰简洁的描述。* ### 请描述你建议的实现方案 *对您想要需求或建议的实现方案的详细描述。* ```java public class FastJsonRedissonCodec extends MarshallingCodec { } ``` ### 描述您考虑过的替代方案 *对您考虑过的任何替代解决方案或功能的描述。* #### 附加信息 *如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。*

enhancement

### 问题描述 *简要描述您碰到的问题。* ### 环境信息 *请填写以下信息:* - OS信息: win10 - JDK信息: jdk11 - 版本信息:2.0.14 ### 重现步骤 *如何操作可以重现该问题:* ```java public class Main { public static void main(String[] args) { JSON.register(java.sql.Date.class, new...

bug
fixed