advanced, flexible JSON manipulation in C