better as_json output util
add basic test case for as_json util
add README hint for as_json util