JSON finish support for process.c
JSON update the basic framework

TODO: write test and prepare the patch