tests: lib: move json to new ztest API

Move test json to use new ztest API.

Signed-off-by: li biao <biao1x.li@intel.com>
2 files changed