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.
我有一个List[(String, Any)]在 json4s 中,我write(lst)用来序列化 JSON。如何在保留顺序的同时将其序列化为 JSON 对象而不是列表?
List[(String, Any)]
write(lst)
注意:我知道这write(lst.toMap)将序列化为一个对象,但我想保留顺序。
write(lst.toMap)