typetools: more flexible way to customize JSON object

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