Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想反序列化一个 Json 字符串,它是根节点处的序列。例如,
[{"name":"Bob", "age":26}, {"name":"Ted", "age":24}]
我如何使用 spray-json 来做到这一点?
我要求我的解组器将字符串解组为 Seq,例如 -
unmarshal[Seq[Person]]
它奏效了。