add: error handler to every JSON operation.

Signed-off-by: liuyanghejerry <liuyanghejerry@126.com>