JsonRuntime Type
Static helper methods called from the generated code for working with JSON
Static members
Static member | Description |
Full Usage:
JsonRuntime.ConvertArray(doc, mapping)
Parameters:
IJsonDocument
mapping : Func<IJsonDocument, 'T>
Returns: 'T[]
|
|
Full Usage:
JsonRuntime.ConvertBoolean(json)
Parameters:
JsonValue option
Returns: bool option
|
|
|
|
Full Usage:
JsonRuntime.ConvertDateTimeOffset(cultureStr, json)
Parameters:
string
json : JsonValue option
Returns: DateTimeOffset option
|
|
Full Usage:
JsonRuntime.ConvertDecimal(cultureStr, json)
Parameters:
string
json : JsonValue option
Returns: decimal option
|
|
Full Usage:
JsonRuntime.ConvertFloat(cultureStr, missingValuesStr, json)
Parameters:
string
missingValuesStr : string
json : JsonValue option
Returns: float option
|
|
|
|
Full Usage:
JsonRuntime.ConvertInteger(cultureStr, json)
Parameters:
string
json : JsonValue option
Returns: int option
|
|
Full Usage:
JsonRuntime.ConvertInteger64(cultureStr, json)
Parameters:
string
json : JsonValue option
Returns: int64 option
|
|
Full Usage:
JsonRuntime.ConvertOptionalProperty(doc, name, mapping)
Parameters:
IJsonDocument
name : string
mapping : Func<IJsonDocument, 'T>
Returns: 'T option
|
|
Full Usage:
JsonRuntime.ConvertRecordToDictionary(doc, mappingKey, mappingValue)
Parameters:
IJsonDocument
mappingKey : Func<IJsonDocument, 'Key>
mappingValue : Func<IJsonDocument, 'Value>
Returns: ('Key * 'Value) seq
|
|
Full Usage:
JsonRuntime.ConvertString(cultureStr, json)
Parameters:
string
json : JsonValue option
Returns: string option
|
|
|
|
Full Usage:
JsonRuntime.CreateArray(elements, cultureStr)
Parameters:
obj[]
cultureStr : string
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.CreateRecord(properties, cultureStr)
Parameters:
(string * obj)[]
cultureStr : string
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.CreateRecordFromDictionary(keyValuePairs, cultureStr, mappingKeyBack)
Parameters:
('Key * 'Value) seq
cultureStr : string
mappingKeyBack : Func<'Key, string>
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.CreateValue(value, cultureStr)
Parameters:
obj
cultureStr : string
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.GetArrayChildByTypeTag(doc, cultureStr, tagCode)
Parameters:
IJsonDocument
cultureStr : string
tagCode : string
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.GetArrayChildrenByTypeTag(doc, cultureStr, tagCode, mapping)
Parameters:
IJsonDocument
cultureStr : string
tagCode : string
mapping : Func<IJsonDocument, 'T>
Returns: 'T[]
|
|
Full Usage:
JsonRuntime.GetKeysFromInferedDictionary(doc, mappingKey)
Parameters:
IJsonDocument
mappingKey : Func<IJsonDocument, 'Key>
Returns: 'Key[]
|
|
Full Usage:
JsonRuntime.GetNonOptionalValue(path, opt, originalValue)
Parameters:
string
opt : 'T option
originalValue : JsonValue option
Returns: 'T
|
|
Full Usage:
JsonRuntime.GetPropertyPacked(doc, name)
Parameters:
IJsonDocument
name : string
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.GetPropertyPackedOrNull(doc, name)
Parameters:
IJsonDocument
name : string
Returns: IJsonDocument
|
|
Full Usage:
JsonRuntime.GetRecordProperties(doc)
Parameters:
IJsonDocument
Returns: (string * JsonValue)[]
|
|
Full Usage:
JsonRuntime.GetValueByKeyFromInferedDictionary(doc, mappingKey, mappingValue, key)
Parameters:
IJsonDocument
mappingKey : Func<IJsonDocument, 'Key>
mappingValue : Func<IJsonDocument, 'Value>
key : 'Key
Returns: 'Value
|
|
Full Usage:
JsonRuntime.GetValuesFromInferedDictionary(doc, mappingValue)
Parameters:
IJsonDocument
mappingValue : Func<IJsonDocument, 'Value>
Returns: 'Value[]
|
|
Full Usage:
JsonRuntime.InferedDictionaryContainsKey(doc, mappingKey, key)
Parameters:
IJsonDocument
mappingKey : Func<IJsonDocument, 'Key>
key : 'Key
Returns: bool
|
|
Full Usage:
JsonRuntime.TryGetArrayChildByTypeTag(doc, cultureStr, tagCode, mapping)
Parameters:
IJsonDocument
cultureStr : string
tagCode : string
mapping : Func<IJsonDocument, 'T>
Returns: 'T option
|
|
Full Usage:
JsonRuntime.TryGetPropertyPacked(doc, name)
Parameters:
IJsonDocument
name : string
Returns: IJsonDocument option
|
|
Full Usage:
JsonRuntime.TryGetPropertyUnpacked(doc, name)
Parameters:
IJsonDocument
name : string
Returns: JsonValue option
|
|
Full Usage:
JsonRuntime.TryGetPropertyUnpackedWithPath(doc, name)
Parameters:
IJsonDocument
name : string
Returns: JsonValueOptionAndPath
|
|
Full Usage:
JsonRuntime.TryGetValueByKeyFromInferedDictionary(doc, mappingKey, mappingValue, key)
Parameters:
IJsonDocument
mappingKey : Func<IJsonDocument, 'Key>
mappingValue : Func<IJsonDocument, 'Value>
key : 'Key
Returns: 'Value option
|
|
Full Usage:
JsonRuntime.TryGetValueByTypeTag(doc, cultureStr, tagCode, mapping)
Parameters:
IJsonDocument
cultureStr : string
tagCode : string
mapping : Func<IJsonDocument, 'T>
Returns: 'T option
|
|