add --tojson option to get json content from a gdoc