add as_json output util (#74)
better as_json output util
add basic test case for as_json util
add README hint for as_json util