Tag Archives: json parsing

Parsing JSON into Swift Objects directly

      No Comments on Parsing JSON into Swift Objects directly

Parsing JSON data in into swift objects have become super easy with Swift 4 JSONDecoder.Given below is a simple example which hits a Api and parses the JSON data directly to¬†student¬†object.We are assuming that we have a JSON response which has same keys as names of properties. import UIKit struct… Read more »