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

相关Issue #210 @[davionchen](https://github.com/davionchen) 提供的测试数据: 测试字符串 :{"abc":"fasd","testList":[{"abc":"dfadf"}]} 脱敏结果:{"abc":"sha256@60d203f36c2f7d24077b2cd58e03d265df10d5c410d079ee4d1da4ffef8a1230","testList":[{"abc":"sha256@29d5013b028f96981c07198bde9ebb82493fb177dbfbab4d9c82637820c9ffe3"}]} 单位:毫秒 JsonPath:13个未命中,1个命中(abc) | 案例 | Fastjson1ValueFilter | Fastjson2JsonPath | JaywayJsonPath | | ------- | ------- |------- |------- | | 100w循环 | 2801 |3145...

enhancement

参考PR https://github.com/alibaba/fastjson2/pull/245

enhancement

当一个对象里面包含Date类型时使用toJSONString时我想和fastjson1一样打印时间戳,而不是默认的时间格式。

question

can support scala case class?

enhancement

public class WinningInformationBo { private boolean isSuccess; private String wxId; private Map parems; } String str3 = "{\"wx_id\":\"xxx\",\"success\":true,\"parems\":null}"; WinningInformationBo bo = JSON.parseObject(str3, WinningInformationBo.class); 此时会报错抛出异常。 使用fastjson 2.0.9兼容版本和fastjson2 2.0.9都会报错。 期望值是null时不用赋值

bug

### 请描述您的问题 *询问有关本项目的使用和其他方面的相关问题。* com.android.tools.r8.internal.a2: MethodHandle.invoke and MethodHandle.invokeExact are only supported starting with Android O (--min-api 26)

question

### 问题描述 *简要描述您碰到的问题。* 1.2.83 版本调用 JSON.parseArray(jsonData, clazz);无误 ![image](https://user-images.githubusercontent.com/32056262/180693170-86e2ae8a-810b-423b-9ac8-aed36ab74be5.png) 2.0.10兼容版本 JSON.parseArray(jsonData, clazz); 出现 转换出对象 值config 为null 某类包含 config属性 转换对应属性 为空 (转换串 属性 有符号__config__ 可看图 标识下面jsonData 黑色粗体得key 是带了符号 ) ![image](https://user-images.githubusercontent.com/32056262/180694280-ff717887-600f-487f-acf2-d7d44bf4f79a.png) ![image](https://user-images.githubusercontent.com/32056262/180694228-cee75517-c46e-4dd4-9b95-144adf9628bb.png) ![image](https://user-images.githubusercontent.com/32056262/180692808-1f1252ab-a97a-4c6a-8d0b-068a555ad868.png)...

bug

SimplePropertyPreFilter SerializeFilter ExtraProcessor 请问上面这几个对应fastjson2的是哪些?

question

对接接口时,尤其是不同语言系统之间的相互对接,传过来的json体习惯也不相同。经常会出现多层结构但是只需要值的情况。 比如: ```json { "Id": "94fcc55b2aba437c9a7c1a2765a3e378", "MsgType": 3, "TerminalId": "YK", "LaneName": "15", "Item": { "Datetime": "2022-07-19T10:03:37.575796+08:00", "Msg": "这是一条测试消息" } } ``` 实际上接收方不需要item中的层级只需要里面的值。 如果可以在定义的bean中直接指定@JsonProperty("jsonPath")的形式,就能更直接的在转换层处理层级结构,而不是接收到json串之后再自行处理;同时这还能解决json扁平化的需求。 例如: ``` public class Bean{ @JsonProperty("Id") public...

enhancement

![微信截图_20220720114507](https://user-images.githubusercontent.com/23691629/179905223-e7d2a749-e15e-46c2-94b9-19495ac9ce1b.png)

bug