fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

🚄 FASTJSON2 is a Java JSON library with excellent performance.

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

Bumps `arrow.version` from 16.0.0 to 16.1.0. Updates `org.apache.arrow:arrow-memory-netty` from 16.0.0 to 16.1.0 Updates `org.apache.arrow:arrow-vector` from 16.0.0 to 16.1.0 Commits 7dd1d34 MINOR: [Release] Update versions for 16.1.0 ca3e9d1 MINOR: [Release] Update...

dependencies

现在又出现了了新的错误,能否把这些错误统一处理了? Jakarta.servlet.ServletException: Handler dispatch failed: java. lang. IllegalAccessError: failed to access class java.lang. ref.ReferenceQueue$Lock from class com.alibaba.fastjson2.writer.OWG_58_3_Null ( java.lang. ref.ReferenceQueue$Lock is in module java base of loader 'bootstrap'; com.alibaba.fastjson2.writer.0WG_58_3_Null is...

bug
fixed

fastjson1升fastjson2时,使用的是Fastjson v1兼容模块 \ \com.alibaba\ \fastjson\ \2.0.50\ \ 出现以下问题 String json = "{0:12,1:13,2:14,\\\"date\\\":\\\"2024-05-14\\\"}"; Map map = JSON.parseObject(json, Map.class); fastjson1取值如下: Integer date0 = (Integer) map.get(0);// 取到值为12 Integer date1 = (Integer) map.get(1);// 取到值为13...

bug
question
fixed

Bumps [org.eclipse.jetty:jetty-bom](https://github.com/jetty/jetty.project) from 11.0.15 to 12.0.9. Release notes Sourced from org.eclipse.jetty:jetty-bom's releases. 12.0.9 Changelog #11699 - new IllegalStateException when attempting to access Request/Response outside of Request Lifecycle #11687 - HttpFields$Mutable$Wrapper.computeField()...

dependencies

Bumps `kotest.version` from 5.5.5 to 5.9.0. Updates `io.kotest:kotest-assertions-core-jvm` from 5.5.5 to 5.9.0 Release notes Sourced from io.kotest:kotest-assertions-core-jvm's releases. v5.9.0 New Features Support for WebAssembly (the wasmJs target) has been added...

dependencies

目前生成代码修改JSONType的serializer和deserializer,这个需要反射获取,这个在graalvm native-image下需要额外配置META-INF/native-image/reflect-config.json,比如 ![image](https://github.com/alibaba/fastjson2/assets/1166785/2b1a5e9f-9de5-4881-80d5-6b9c812f16d5)

enhancement

### 请描述您的需求或者改进建议 最近在做fastjson升级到fastjson2改造,由于是网关应用需要对JSON数据进行修改和裁剪,所以会大量用到SerializeFilter扩展能力,在升级到fastjson2的FIlter时,发现以下功能是不兼容的: 1. ValueFilter 和 PropertyFilter 方法签名冲突 > 方法名都是apply, 导致无法在一个类里面实现这两个接口 2. 无法通过PropertyPreFilter.apply构建当前对象的完整路径 > fastjson的PropertyPreFilter.apply的入参JSONSerializer,我可以基于JSONSerializer.context的parent和fieldName来构建出当前对象的完整路径。 > 而fastjson2的PropertyPreFilter.apply入参JSONWriter没法支持我能构建出当前对象的完整路径 (因为我这边需要通过参数完整路径来定位到该参数相关业务配置) ### 请描述你建议的实现方案 1.如果两个filter功能不是互斥,是否可以考虑使用不同方法名 2.JSONWriter的refs提供一个get方法获取Path, Path再提供获取parent和name的get方法,这种是否可行的吗? ### 描述您考虑过的替代方案 1.目前是通过两个类来分别继承两个接口,然后两个类再互相绑定用于交换数据 #### 附加信息

enhancement

*询问有关本项目的使用和其他方面的相关问题。* ### 问题描述 老项目中有些bean字段命名不规范,有些字段名首字母大写,在fastjson 1.x版本中会生成首字母大写和首字母小写两个字段,在fastjson2.x版本中则只生成首字母小写字段,请问下在fastjson2.x版本有什么方法可以保持一致 ### 重现步骤 ``` public class JsonTest { public String JsonName; public String getJsonName() { return JsonName; } public void setJsonName(String jsonName) { JsonName = jsonName;...

question

### 问题描述 JSONPath.extract对于illegal path抛出fastjson2.JSONException: TODO,fastjson 1.2.83 能够返回null ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson2 2.0.50] ### 重现步骤 ```java import com.alibaba.fastjson2.JSONPath; import...

bug

### 问题描述 EnumMap在配置WriteClassName和SupportAutoType后,无法使用JSON.parseObject反序列化。使用JSONB.parseObject以及在fastjson 1.2.83中正常 ### 环境信息 - OS信息: [MacOS 12.7.4 M1 Pro 16 GB] - JDK信息: [Openjdk 17.0.6] - 版本信息:[Fastjson2 2.0.50] ### 重现步骤 ```java import com.alibaba.fastjson.serializer.SerializerFeature; import com.alibaba.fastjson2.JSON; import com.alibaba.fastjson2.JSONB;...

bug
fixed