Return posts from json endpoint