Make json dumps in stdstreams pretty

Change-Id: If37e16cce7a57e7e6215dd50c5aa8a859e86fcf9