Added method to parse an array of posts from the API response