Array struct Array<Element> : RandomAccessCollection, MutableCollection toJSON() Converts an instance of Array whose elements conform to JSONEncodable to JSON. - returns: An instance of JSON where the enum case is .array. Declaration Swift public func toJSON() -> JSON Return Value An instance of JSON where the enum case is .array. © 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.