JSON pull parser in C