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)