JSONEncodable public protocol JSONEncodable A protocol to facilitate encoding and decoding of JSON. toJSON() Converts an instance of a conforming type to JSON. - returns: An instance of JSON. - Note: If conforming to JSONEncodable with a custom type of your own, you should return an instance of JSON.dictionary. Declaration Swift func toJSON() -> JSON Return Value An instance of JSON. © 2016 Matt Mathias, John Gallagher, and Zachary Waldowski. All rights reserved. (Last updated: 2016-09-17) Generated by jazzy ♪♫ v0.7.2, a Realm project.