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

前端 未结 4 2043
青春惊慌失措
青春惊慌失措 2021-02-15 08:05

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.

提交回复
热议问题