JSON parser and stringifier in C