Cpprestsdk - 漂亮的印刷品 [英] Cpprestsdk - pretty printing

查看:108
本文介绍了Cpprestsdk - 漂亮的印刷品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都知道卡萨布兰卡(CPPRestsdk)是否有输出格式良好的json的方法?卡萨布兰卡似乎没有为你做过这样的课程,是否还有另一种方法可以达到这个目的?



我尝试过的方法:



通常的谷歌搜索和大量饮酒

Anyone know if Casablanca ( CPPRestsdk ) has a method to output nicely formatted json ? there doesn't seem to be a class in Casablanca that does this for you, is there another way of achieving this ?

What I have tried:

The usual googling and drinking heavily

推荐答案

解决方案1:

- 搜索/谷歌图书馆文档。

- 在用户论坛中询问



解决方案2:

- 搜索另一个完成这项工作的图书馆。



解决方案3:

- 自己动手,这可不是那么困难。

定义是什么让它格式化。

在编辑器中加载一个json文件,看看你需要做什么才能使它格式化。

看看是否确保在适当的位置换线并在线的起点控制空间就足够了。
Solution 1:
- search/Google library documentation.
- ask in a forum of users

Solution 2:
- search for another library that does the job.

Solution 3:
- Do it yourself, it can be not so difficult.
define what make it 'nicely formatted'.
load a json file in editor and see what you need to make it 'nicely formatted'.
see if ensuring line changing at proper place and controling spaces at beginning of lines is enough.


这篇关于Cpprestsdk - 漂亮的印刷品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆