Changed pretty printed json to not have trailing blanks