Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
JSON Encoding Swift
let encodedData = try jsonEncoder.encode(surveyFormResults)
let jsonRespresentation = String(data:encodedData,encoding:.utf8)
print(jsonRespresentation!)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment