Programming With Swift
  • Home
  • About
  • Github
Sign in Subscribe

JSONEncoder

A collection of 2 posts
How to convert Dictionary to Json with Swift
Swift

How to convert Dictionary to Json with Swift

It is a common task to convert a Dictionary to JSON. In this tutorial I will show you how you can do just that, luckily for us, Swift makes this incredibly easy. A quick note before we get started, the dictionary's value needs conform to Encodable or Codable.
06 Oct 2020 1 min read
How to Convert an object to JSON with Swift
JSONEncoder

How to Convert an object to JSON with Swift

There could be a few reasons why you would want to convert a swift object to JSON. In this tutorial we will take a look at how we can convert a swift object to a JSON string and how to convert the JSON string to a swift object. First, let&
02 Aug 2020 2 min read
Page 1 of 1
Programming With Swift © 2025
Powered by Ghost