-
1、server返回的字段有俩
”is_vertical“:0 与 "isVertical":1
bean 中定义解析类型 如下
@JSONField(name = "is_vertical")
public String isVertical;
@JSONField(name = "isVertical")
public S…
-
复现case如下:用 1.2.69 和 1.2.83 版本的 fastjson 会得出不同的结果
```java
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjso…
-
### 请描述您的问题
*询问有关本项目的使用和其他方面的相关问题。*
在fastjson1中,继承ContextObjectSerializer,我可以通过BeanContext context获取JSONField注解中的format字段,类似
`@JSONField(serializeUsing = CustomerBigDecimalCodec.class, format = "#,…
-
After upgrading Django from 2.2 to 3.1.1 and django-auditlog from 0.4.7 to v1.0a1 I now have to `json.loads(log_entry["additional_data"])` to get the same result as `log_entry["additional_data"]` befo…
-
Add examples:
* Usages of annotated fields in tiles (and JSONField cases)
* Usages of get_vector_tile_queryset to simplify geometries by zoom level
* Usage of cache policies on get_tile
-
### 没找到自定义序列化和反序列化
*之前V1.X版本支持实现接口com.alibaba.fastjson.parser.deserializer.ObjectDeserializer实现反序列化。*
自从审计到V2.X版本后没找到这个接口类。请知道的大佬指点一下,谢谢
![image](https://user-images.githubusercontent.com/38791046/…
-
### 问题描述
枚举类型变量反序列化后变成NULL
### 环境信息
*请填写以下信息:*
- OS信息: Windows 10
- JDK信息: Openjdk 17
- 版本信息:Fastjson 2:2.0.52
### 重现步骤
首先建立一个基于gradle的java项目,并且引入fastjson2依赖和另外一个开源库citygml4j
…
-
版本:v1.2.83
反应两个问题:
1 JSONField.ordinal JSONType.orders 反序列化不生效 见测试函数disTest1
2 使用setXXX函数的方式进行反序列化时,json 字符串中的字段顺序会被修改,因为1的问题,引起后续序列化失败
做disTest2 的时候,在100行处下断,可以看到传入的字符串已经跟原始的json字符串不一样了.
测试代…
-
Pulp should, probably, try to stop merging Errata and do away with as many special cases as possible. Hopefully without rediscovering all the reasons why it was done this way originally. If we can g…
-