higress-group/higress

http转dubbo-序列化为JSON行为可自定义配置

Open

#706 opened on Dec 18, 2023

 (1 comment) (0 reactions) (0 assignees)Go (1,219 forks)github user discovery
help wantedlevel/challengesig/microservicetype/enhancement

Repository metrics

Stars
 (9,036 stars)
PR merge metrics
 (Avg merge 7d 9h) (18 merged PRs in 30d)

Description

Ⅰ. Issue Description

建议提供全局控制序列化为JSON行为的配置,以控制某些语言某些特殊对象的序列化行为

Ⅱ. Describe what happened

比如java.time.LocalDateTime对象被序列化了如下图这样,基本没办法使用 image

Ⅲ. Describe what you expected to happen

类似于SpringMVC,java.time.LocalDateTime序列化为JSON的结果如下图: 当然,这只是我发现的其中一种类型对象,其他类型的对象肯定也有类似问题

Ⅵ. Environment:

  • Higress version: 1.3.1

Contributor guide