higress-group/higress

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

Aperta

#706 aperta il 18 dic 2023

 (1 commento) (0 reazioni) (0 assegnatari)Go (1219 fork)github user discovery
help wantedlevel/challengesig/microservicetype/enhancement

Metriche repository

Star
 (9036 stelle)
Metriche merge PR
 (Merge medio 7g 9h) (18 PR mergiate in 30 g)

Descrizione

Ⅰ. 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

Guida contributor