Copy (and some of my work) of the official json-c repo