added pretty json view

used angularjs json methods