Parsing JSON using C? [closed]

2020-04-17 05:37发布

There are several C libraries available for parsing JSON, that will compile on Linux. Which library would you recommend?

标签: c json
3条回答
爱情/是我丢掉的垃圾
2楼-- · 2020-04-17 05:54

Just to close the loop:

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:

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.

查看更多
够拽才男人
3楼-- · 2020-04-17 05:55

Check out the list at json.org. There are several C libraries for JSON.

查看更多
姐就是有狂的资本
4楼-- · 2020-04-17 05:58

I've seen YAJL used with MGTwitterEngine (Mac/Cocoa), so I assume it is ok.

I haven't done much with it apart from compiling it and pointing MGTwitterEngine on Mac to its library/header files.

查看更多
登录 后发表回答