added visibleJson function

Only visible json is dumped on error
env command in REPL accepts -all and -visible switches
report contains both all and visible environment dumps