update angular post controller to display json in the posts index view