-
### 使用场景
使用Map接收参数,使用FastJson2序列化Map设置JSONWriter.Feature.WriteClassName, 以保存原始类类信息,序列化的字符串存储下来,在需要使用时取出反序列化,Map参数中所有value类型恢复为原来的类型
### 问题
测试发现,对于Object类型可以还原,但是对于数组类型(int[], byte[], List)无法还原出…
-
数据类型如下:
{"code":200,"msg":"success","result":[{"field1":"value1","field2":"value2"},{"field1":"value3","field2":"value4"}]}
解析时可以解析到result,result我传的是泛型List,解析出来的Bean是com.alibaba.fastjson.JSONObject,…
-
子调用记录下来的对象,如果对象包含有map的属性,虽然根据classload能拿到classtype,但是在回放是mock这个子调用返回是,hessian使用fastjson反序列化的时候由于:fastjson只接收(Integer,Object)的键值对:
![image](https://user-images.githubusercontent.com/5537499/77601473-d…
-
With given test
```
func TestFastjsonBug(t *testing.T) {
str := "192.168.10.1"
v, err := fastjson.Parse(str)
require.NoError(t, err) // EXPECT error here.
vStr := v.MarshalTo(nil)
err…
-
字符串数组需要转换成list,但是出现了错误提示。请求参数字符串:[
{
"OcrSN": 202410090000010,
"RecogFileBinary": "/9j/4AAQSkZJRgABAQEASABIAAD/2wBDABALDA4MChAODQ4SERATGCgaGBYWGDEjJR0oOjM9PDkzODdASFxOQERXRTc4UG…
-
Does issue cve-2022-25845(1.2.83) vulnerability affect android side?
-
https://blog.pressed.top/2021/03/20/fastjsonperror/
java,web,spring,mybatis,vue,jquery,博客,blog,html,http
-
为解决安全问题,升级到1.2.28,但是在反序列化的时候,却遇到了如下问题。看起来是字节码版本的问题
Caused by: java.lang.VerifyError: (class: com/alibaba/fastjson/parser/deserializer/FastjsonASMDeserializer_37_PricingPO, method: deserialze signat…
-
当在项目中使用fastjson.properties设置
fastjson.asmEnable=false
此时如果没有先加载com.alibaba.fastjson.JSON类,而是直接调用SerializeConfig.getGlobalInstance()或者new SerializeConfig都会报
Exception in thread "main" java.lang.Exce…
-
## Issue Description
Rules' deserialization will be interrupted with old version of fastjson due to the bug on inherited bean classes.
Should we add some kinds of force check on it?