return json for individual posts

there is probably a more elegant way to do this.