Added the main json-to-object code + tests.