While trying to fix the JSON segfaults, I added a simple unit testing library. If you run the script tests/run-tests it will compile and run any tests. If you use the #ifdef guards I have in parseJSON.c, that will be the only time the preprocessor doesn't cut the tests out. Thus, it should have no performance impact.