Returning all posts in json.