Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if let configPath = Bundle.main.path(forResource: "resume", ofType: "json") {
- do {
- let jsonString = try String(contentsOfFile: configPath, encoding: .utf8)
- //print("jsonString ", jsonString)
- //let res = try JSONSerialization.jsonObject(with: jsonString.data(using: .utf8)!, options: .allowFragments) as? Array<Dictionary<String, Any> >
- //print("res", res)
- let res1 = JsonParser.parseArray(jsonString)
- print("res1 ", res1)
- // if let returnCode = res1?["code"] {
- // print("ma code la \(returnCode)")
- // }
- } catch _ {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment