test-utils: more methods for json (de)serialization

Signed-off-by: Ketoth Xupack <ketoth.xupack@gmail.com>