added json output for easier parsing

Updated with json format.