使用C解析JSON? [英] Parsing JSON using C?
本文介绍了使用C解析JSON?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有可用于解析JSON几个C库,这将编译在Linux上。你会推荐哪一个库?
There are several C libraries available for parsing JSON, that will compile on Linux. Which library would you recommend?
推荐答案
只是关闭循环:
有关问题的项目中,我们结束了 cJSON 去。我们选择了这一个从 json.org 链接C库的列表。每个网页,cJSON是:
For the project in question, we ended up going with cJSON. We chose this one from the list of C libraries linked from json.org. Per the homepage, cJSON is:
这是超轻,便携,单文件,简单的可任意是ANSI-C标准的JSON解析器,在MIT许可。
An ultra-lightweight, portable, single-file, simple-as-can-be ANSI-C compliant JSON parser, under MIT license.
这正好是一个非常适合手边的特定项目,以及图书馆制定了罚款。
This happened to be a good fit for the particular project at hand, and the library worked out fine.
这篇关于使用C解析JSON?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文