Working (needs testing and error handling)

Basically working but there needs to be some work on malformed JSON and
exceptions as they do not pass from C++ to C. Needs to be tested more
thoroughly in order to expose these bugs but this is the MVP.