Skip to content

javedmultani16/SwiftyJsonSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

SwiftyJsonSetup

Screenshot 2019-09-26 at 4 40 35 PM

Download "SwiftyJSONAccelerator" it makes more easy to parse json just paste your json response and it will give you ready class, you have to just drag and drop taht class in your project and ready to use.

Screenshot 2019-09-26 at 5 27 07 PM

We have to use this library: https://github.com/SwiftyJSON/SwiftyJSON

  • Install the intructed Pod using pod installation.
  • Import framework like...
import SwiftyJSON
  • Parse your json response like...
         let arrayStudentMain = dataDic["Student"] as! [NSArray]
            let swiftArray = arrayStudentMain as AnyObject as! [Any]
            for i in 0..<swiftArray.count {
                let json = JSON(swiftArray[i])
                let objStudent : ObjStudent = ObjStudent.init(json: json)
                self.studentMainArray.append(objStudent)
            }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published