Generate pretty (indented) JSON with serde

前端 未结 0 663
忘掉有多难
忘掉有多难 2021-02-11 20:17

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

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