See linked.
TOOLS-322 Create json output option for mongostat
TOOLS-323 Create json output option for mongotop