Contentful logo

Contentful Community

How to decode JSON Object in Swift

Hi,

I want to be able to grab a JSON Object in Swift but I haven’t gotten anywhere. the object is inside a content.

content: {
type; “string”,
writtenTexts: { "default: “whatever text here”}
}

I am trying to decode writtenTexts.