added parameter to dump complete output in json format