JSON序列化用C [英] JSON Serialization in C
问题描述
什么是生成UTF-8 JSON用C的最好方法?我看着杨松,但似乎非常笨重。有没有在C创建和读取JSON对象/字符串任何其他良好的低依赖库?
What is the best way to generate UTF-8 JSON in C? I've looked at Jansson, but it seems extremely bulky. Is there any other good low-dependency library for creating and reading JSON objects/strings in C?
推荐答案
或许JSON从CCAN模块? HTTP://c$c$carchive.net/ 它甚至不依赖于其他任何从CCAN,并且由整整两个文件 json.c
和 json.h
Perhaps the JSON module from CCAN? http://ccodearchive.net/ It doesn't even depend on anything else from CCAN, and consists of exactly two files json.c
and json.h
(json模块是这里<一个href=\"http://git.ozlabs.org/?p=ccan;a=tree;f=ccan/json\">http://git.ozlabs.org/?p=ccan;a=tree;f=ccan/json )
(The JSON module is here http://git.ozlabs.org/?p=ccan;a=tree;f=ccan/json )
这篇关于JSON序列化用C的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!