Collection
protocol Collection : Sequence where Self.SubSequence : Collection
This extension adds some useful functions to Collection protocol.
-
Convert self to JSON as String.
Throws
Throws JSONSerialization and BFKitError.jsonSerialization errors.Declaration
Swift
public func json() throws -> String
Return Value
Returns the JSON as String or nil if error while parsing.