Index

RBJson.swift

Classes


RBJson

JSON serialisation and deserialisation convenience methods.

Functions

JSON serialisation and deserialisation convenience methods.
public class func deserialise(fileURL: URL, options: JSONSerialization.ReadingOptions = JSONSerialization.ReadingOptions.mutableContainers) -> Any?

public class func deserialise(filePath: String, options: JSONSerialization.ReadingOptions = JSONSerialization.ReadingOptions.mutableContainers) -> Any?

public class func deserialise(string: String, options: JSONSerialization.ReadingOptions = JSONSerialization.ReadingOptions.mutableContainers) -> Any?

public class func deserialise(data: Data, options: JSONSerialization.ReadingOptions = JSONSerialization.ReadingOptions.mutableContainers) -> Any?

public class func serialise(json: Any, options: JSONSerialization.WritingOptions = JSONSerialization.WritingOptions.prettyPrinted) -> Data?

public class func serialiseToString(json: Any, options: JSONSerialization.WritingOptions = JSONSerialization.WritingOptions.prettyPrinted) -> String?

public class func traverse(json: Any, path: String) -> Any?