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
UPDATE
OP is now happy with EVReflection. So I assume that at this moment it's the best choice.
ORIGINAL ANSWER
Since Swift reflection possibilities is not yet such rich there is no ultimate solution now like google-gson for Java.
Libraries like SwiftJSON and Swift ObjectMapper are just sugared NSJSONSerialization
and require you to define mappings from json fields to object properties.
But things are changing and you can try out JsonSerializerSwift. I have not yet used it but it use Swift reflection and seems to work fine.
Also check out Swift Mirrors and JSON by Chris Eidhof article. It explains how JSON serialization using reflection possibilities works.