Open ClassFoundation5.9.0
JSONSerialization
class JSONSerialization
Superclasses
class NSObject
The root class of most Foundation class hierarchies.
Citizens in Foundation
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol NSObjectProtocol
The
NSObjectProtocol
groups methods that are fundamental to all Foundation objects.
Members
class func data(withJSONObject: Any, options: JSONSerialization.WritingOptions
) throws -> Data class func isValidJSONObject(Any
) -> Bool class func jsonObject(with: InputStream, options: JSONSerialization.ReadingOptions
) throws -> Any class func jsonObject(with: Data, options: JSONSerialization.ReadingOptions
) throws -> Any class func writeJSONObject(Any, toStream: OutputStream, options: JSONSerialization.WritingOptions
) throws -> Int struct ReadingOptions
struct WritingOptions
Extension in NIOFoundationCompat
Members
static func jsonObject(with: ByteBuffer, options: JSONSerialization.ReadingOptions
) throws -> Any Attempts to derive a Foundation object from a ByteBuffer and return it as
T
.