json output to history