top | item 8609236

(no title)

areop | 11 years ago

I wrote a JSON-Parser in C with minimal validation in ~250 LOC that does not allocate memory, but leaves the type check and conversion to the user. https://github.com/vurtun/json

discuss

order

jeremie|11 years ago

It would be nice if the README mentioned it was originally based on my https://github.com/quartzjer/js0n :)

areop|11 years ago

Added your project as a reference. Sorry for the missing reference I originally never planned to make the project known publicly and therefore never added the references.

klibertp|11 years ago

This is absolutely beautiful. I didn't know you could get an address of a label in C or to do a goto to an address from variable instead of a literal label. Is this new in C, or was it always there?

codehero|11 years ago

Unfortunately it won't port to IAR, which is a shame. I don't understand why pointers to labels never made it to the C spec; it's one of the (equivaling) features that actually makes assembler look elegant.

rxi|11 years ago

That test.c file looks familiar!

areop|11 years ago

Yeah I was looking for unit test macros and found your project. I added your project as a reference in the README for clarification of the origin.

huhtenberg|11 years ago

That's a very nice code.