Can I sth else then structures in JSON?

How can I make it work?

jsonString = """
["foo", "bar"]
"""
let decoder = JSONDecoder
var whatIWant = decoder.decode(Array<String>.self, jsonString)
for i in whatIWant {
    print(i)
}

EDIT: Minor syntax mistake ignore this thread sorry everyone

Great. A good practice on the forum is to tell what the error was. You may read this: https://developer.apple.com/forums/thread/706527

Can I sth else then structures in JSON?
 
 
Q