Ruby Ruby 有没有类似 Java Jackson 那种将 class 和 json 互转的库?

willx · July 05, 2024 · Last by willx replied at July 05, 2024 · 479 hits

例如 MQ、HTTP 请求,需要获取到很多结构复杂、字段很多、甚至嵌套几层的 JSON。

有的时候字段还乱七八糟的,snake-case、大驼峰、小驼峰、kebab-case 共存,需要互相转换。

0 Floor has deleted

很多库都只能 class 转 json,但 json 转 class 的能力都缺失

2 Floor has deleted
willx closed this topic. 08 Jul 15:00
You need to Sign in before reply, if you don't have an account, please Sign up first.