Add JSON API to get last posts.