Qt 的最佳 JSON 解析器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1825892/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-03 17:22:04  来源:igfitidea点击:

Best JSON parser for Qt?

jsonparsingqt

提问by Martin

I'm using QT for Symbian and need a simple json parser. I need to be able to go from json to Qt-variant and the other way around. Is there a simple json parser that I can use? I don't want to write my own.

我在 Symbian 上使用 QT,需要一个简单的 json 解析器。我需要能够从 json 转到 Qt-variant,反之亦然。我可以使用一个简单的 json 解析器吗?我不想自己写。

回答by ALoopingIcon

You need no Additional code except QT itself to parse JSON with QT

除了 QT 本身,你不需要额外的代码来用 QT 解析 JSON

http://doc.qt.io/qt-5/json.html

http://doc.qt.io/qt-5/json.html

回答by Gerstmann

Check out Qt-Json

查看Qt-Json

Its a dead-simple class for parsing and serializing JSON data.

它是一个非常简单的类,用于解析和序列化 JSON 数据。

回答by Dirk Eddelbuettel

The qjsonproject may be a good start. It has also been packaged for Debian.

qjson项目可能是一个良好的开端。它也被打包用于Debian

回答by Girish

I wrote a QLALR based JSON parser : http://git.forwardbias.in/?p=qjsonparser.git.

我写了一个基于 QLALR 的 JSON 解析器:http://git.forwardbias.in/?p=qjsonparser.git 。

git clone git://git.forwardbias.in/qjsonparser.git.

git clone git://git.forwardbias.in/qjsonparser.git。