got json output working