Encodable extension Encodable json() Converts an instance of Self to JSON. Throws Encoding errors that occur when encoding Self to JSON. Declaration Swift public func json() throws -> JSON Return Value The JSON representation of Self. © 2019 . All rights reserved. (Last updated: 2019-10-17) Generated by jazzy ♪♫ v0.11.2, a Realm project.