Given below is my custom swift class. My Question is how to convert an object of this class to a json string using SwiftyJson?
class Equipment{
var UniqueI
From Swift4 we can use JSONEncoder itself to convert Object model to Json String.
For that we just needs to extends the Object with Codable if the json keys are standard.
Reference :