Json function chain.c and table.c