Is SwiftyJson capable of converting a custom swift class to a json string?

前端 未结 4 1050
不思量自难忘°
不思量自难忘° 2021-02-15 08:11

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         


        
4条回答
  •  无人及你
    2021-02-15 08:24

    May be this will helps: https://github.com/PonyCui/PPJSONSerialization

    You use serialize to serialize PPJSONSerialization classes to JSON String or JSON Data, it's a perfect way to deliver data to server.

提交回复
热议问题