Skip to content

Instantly share code, notes, and snippets.

View MohammadArnauti's full-sized avatar

Mohammad arna'uti MohammadArnauti

View GitHub Profile
@MohammadArnauti
MohammadArnauti / problem
Created May 13, 2018 11:54
from json to swift
let url = URL(string: "http://dookanti.com/api/api.php?type=api&action=getCategories&store_id=2" )
let task = URLSession.shared.dataTask(with: url!) { (data, response, error) in
if error != nil {
print ("Error")
} else {
if let myData = data {
do {