get posts can respond to json or xml