mercredi 20 juillet 2016

How to populate random word generator from JSON file

I am new in Swift and I need to populate a random word generator from JSON file, so that I do not have to update the whole application every time I add a new word.

here is an example of my JSON file:

{
   “People”: {
    “Person1”: {
        “Label1.text”: “Free Coke”,
        “ImeNaObekt.text”: “LA”,
        “Shirina.text”: “44.0757”,
        “Duljina.text”: "25.6172"
    },

    “Person2”: {
        “Label1.text”: “Free coffee”,
        “ImeNaObekt.text”: “Boston”,
        “Shirina.text”:”43.1757”,
        “Duljina.text”: "24.5172"
    },

    “Person3”: {
        “Label1.text”: “Free Pizza”,
        “ImeNaObekt.text”: “NY”,
        “Shirina.text”:”45.2757”,
        “Duljina.text”: "25.4172"

    },
}
}




Aucun commentaire:

Enregistrer un commentaire