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 UniqueItemId:String? = ""
var ItemNo:String? = ""
var EquipmentType:String? = ""
var EquipmentDescription:String? = ""
var Length:String? = ""
var Wll:String? = ""
var EquipmentLocation:String? = ""
var EquipmentManufacture:String? = ""
var SerialNo:String? = ""
var Condition:String? = ""
var Remarks:String? = ""
var InspectionDate:String? = ""
var Inspector:String? = ""
}
For example, like this:
var jsonString = JSON(equipmentObject);