JsonDocument
Overview
Location
- Reference: Sugar
- Namespace: Sugar.Json
constructor
constructor
JsonDocument()
init()
JsonDocument()
Sub New()
constructor (not nullable JsonNode)
constructor(aRoot: not nullable JsonNode)
JsonDocument(JsonNode! aRoot)
init(_ aRoot: JsonNode)
JsonDocument(JsonNode aRoot)
Sub New(aRoot As JsonNode)
Parameters:
- aRoot:
CreateDocument
class method CreateDocument: not nullable JsonDocument
static JsonDocument! CreateDocument()
static func CreateDocument() -> JsonDocument
static JsonDocument CreateDocument()
Shared Function CreateDocument() As JsonDocument
FromBinary
class method FromBinary(aBinary: not nullable Binary; aEncoding: Encoding): not nullable JsonDocument
static JsonDocument! FromBinary(Binary! aBinary, Encoding aEncoding)
static func FromBinary(_ aBinary: Binary, _ aEncoding: Encoding) -> JsonDocument
static JsonDocument FromBinary(Binary aBinary, Encoding aEncoding)
Shared Function FromBinary(aBinary As Binary, aEncoding As Encoding) As JsonDocument
Parameters:
- aBinary:
- aEncoding:
FromFile
class method FromFile(aFile: not nullable File): not nullable JsonDocument
static JsonDocument! FromFile(File! aFile)
static func FromFile(_ aFile: File) -> JsonDocument
static JsonDocument FromFile(File aFile)
Shared Function FromFile(aFile As File) As JsonDocument
Parameters:
- aFile:
FromString
class method FromString(aString: not nullable String): not nullable JsonDocument
static JsonDocument! FromString(String! aString)
static func FromString(_ aString: String) -> JsonDocument
static JsonDocument FromString(String aString)
Shared Function FromString(aString As String) As JsonDocument
Parameters:
- aString:
Item
Keys
property Keys: not nullable IEnumerable<String> read;
IEnumerable<String>! Keys { get; }
var Keys: IEnumerable<String> { get{} }
IEnumerable<String> Keys { __get; }
ReadOnly Property Keys() As IEnumerable<String>
Root
property Root: not nullable JsonNode read;
JsonNode! Root { get; }
var Root: JsonNode { get{} }
JsonNode Root { __get; }
ReadOnly Property Root() As JsonNode
RootObject
property RootObject: not nullable JsonObject read;
JsonObject! RootObject { get; }
var RootObject: JsonObject { get{} }
JsonObject RootObject { __get; }
ReadOnly Property RootObject() As JsonObject
ToJson
method ToJson: String
String ToJson()
func ToJson() -> String
String ToJson()
Function ToJson() As String
ToString
Item
Keys
property Keys: not nullable IEnumerable<String> read;
IEnumerable<String>! Keys { get; }
var Keys: IEnumerable<String> { get{} }
IEnumerable<String> Keys { __get; }
ReadOnly Property Keys() As IEnumerable<String>
Root
property Root: not nullable JsonNode read;
JsonNode! Root { get; }
var Root: JsonNode { get{} }
JsonNode Root { __get; }
ReadOnly Property Root() As JsonNode
RootObject
property RootObject: not nullable JsonObject read;
JsonObject! RootObject { get; }
var RootObject: JsonObject { get{} }
JsonObject RootObject { __get; }
ReadOnly Property RootObject() As JsonObject
CreateDocument
class method CreateDocument: not nullable JsonDocument
static JsonDocument! CreateDocument()
static func CreateDocument() -> JsonDocument
static JsonDocument CreateDocument()
Shared Function CreateDocument() As JsonDocument
FromBinary
class method FromBinary(aBinary: not nullable Binary; aEncoding: Encoding): not nullable JsonDocument
static JsonDocument! FromBinary(Binary! aBinary, Encoding aEncoding)
static func FromBinary(_ aBinary: Binary, _ aEncoding: Encoding) -> JsonDocument
static JsonDocument FromBinary(Binary aBinary, Encoding aEncoding)
Shared Function FromBinary(aBinary As Binary, aEncoding As Encoding) As JsonDocument
Parameters:
- aBinary:
- aEncoding:
FromFile
class method FromFile(aFile: not nullable File): not nullable JsonDocument
static JsonDocument! FromFile(File! aFile)
static func FromFile(_ aFile: File) -> JsonDocument
static JsonDocument FromFile(File aFile)
Shared Function FromFile(aFile As File) As JsonDocument
Parameters:
- aFile:
FromString
class method FromString(aString: not nullable String): not nullable JsonDocument
static JsonDocument! FromString(String! aString)
static func FromString(_ aString: String) -> JsonDocument
static JsonDocument FromString(String aString)
Shared Function FromString(aString As String) As JsonDocument
Parameters:
- aString:
constructor
constructor
JsonDocument()
init()
JsonDocument()
Sub New()
constructor (not nullable JsonNode)
constructor(aRoot: not nullable JsonNode)
JsonDocument(JsonNode! aRoot)
init(_ aRoot: JsonNode)
JsonDocument(JsonNode aRoot)
Sub New(aRoot As JsonNode)
Parameters:
- aRoot:
ToJson
method ToJson: String
String ToJson()
func ToJson() -> String
String ToJson()
Function ToJson() As String
ToString