user537670
user537670

Reputation: 821

Json string parser using C

I was referring a site called "joys of programming" for JSON Parser in C. The site seems down and I am not able to get information regarding JSON parser. It would be great if some one can guide me. I want to know how to create a JSON Array.Thanks in advance.

Upvotes: 2

Views: 508

Answers (2)

xiaoke
xiaoke

Reputation: 3441

I found several lib could do this work. Jsoncpp, JsonValue, cppCMS, JsonSpirit and Jansson. The jsonvalue is the easiest one. It just contains a pair of .h file and .cpp file.

Upvotes: 1

Simon
Simon

Reputation: 890

If you want to make you own json parser, you have to look at the language grammar, which is probably LL. Writing such a LL parser is almost trivial and kind of funny, use a regex library to save a precious time.

If you're looking for a library to deal with Json data, here is the second result Google gave me.

Upvotes: 4

Related Questions