JSON序列化用C [英] JSON Serialization in C

查看:2021
本文介绍了JSON序列化用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屋!

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