Generate pretty (indented) JSON with serde

前端 未结 0 1761
轻奢々
轻奢々 2021-02-11 20:30

Using the serde_json crate, I can use

::serde_json::to_string(&obj)

to serialize an object into a JSON string. The resulting JSON uses comp

相关标签:
回答
  • 消灭零回复
提交回复
热议问题