2

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.

2 Answers 2

4

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.

1
  • 1
    I have used Jansson library and can vote for it. readable source code if needed (i modified it a bit for my needs), good documentation, easy licencing and its maintainable (frequent releases).
    – Ilya
    Oct 11, 2011 at 8:35
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.