compile and test json function

Signed-off-by: you <ylcaa@foxmail.com>