IOS(Swift)

Swift Json Parsing

----___<<<<< 2020. 12. 29. 18:39

이곳의 데이터를 가져와서 파싱하는 방법입니다.

 

 

News API - A JSON API for live news and blog articles

Search worldwide news articles and headlines from all over the web in real-time with our free News API.

newsapi.org

 

 

우선 데이터 형태로 struct를 만들어줍니다.

 

 

 

 그리고 ViewController에서 파싱을 진행하면 됩니다.