I need to parse JSON object through Qt. What is the easiest/fastest way to do it?

推荐答案

Try QJson.

QJson is actively developed (and used by KDE, if I'm not mistaken). The best is to checkout the source code directly and built it yourself. There is no dependencies to QJson (except for Qt and CMake). It's pretty simple to use too, have a look at some usage examples :

http://qjson.sourceforge.net/usage/

Json相关问答推荐

Vega图表计数聚合如果数据值为空数组则不显示任何内容,如何解决此问题?

由于无效的UTF-8开始字节0xa0,JSON被拒绝,但编码似乎有效

ArcGIS json到Geojson的变换

GO KaZaam转换返回意外结果

使用自定义类型在Golang中解析JSON数组

如何使用jolt规范将一个对象添加到另一个对象中并删除该对象

使用Powershell将JSON文件加载到SQL Server表格

Jolt 不打印任何东西

Jolt 规范将父对象中的所有键应用于数组中的所有对象

使用 jq 和 awk 拆分大型 JSON 文件

阅读 JSON 正文 Firebase 云函数

JOLT 转换 - 删除 JSON 数组中的空 node

如何将 XML 转换为 PsCustomObject 以允许最终导出为 JSON?

避免 KeyError 的默认字典键

如何使用 json.net 将数据表转换为 json 字符串?

将带有数据和文件的 JSON 发布到 Web Api - jQuery / MVC

在 Http Header 中使用 Json 字符串

有必要清理 JSON 吗?

如何将 Swift 对象转换为字典

未调用 npm package.json 脚本