Json parsing in c code