Namespace: Fleece
Assembly: Fleece.FSharpData.dll
Function or value | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
dictAsJsonObject x
Parameters:
IReadOnlyDictionary<string, JsonValue>
Returns: JsonObject
|
|
Full Usage:
dictAsProps x
Parameters:
IReadOnlyDictionary<string, JsonValue>
Returns: (string * JsonValue)[]
|
|
|
|
|
|
Full Usage:
jfield fieldName getter (arg3, arg4)
Parameters:
string
-
A string that will be used as key to the field.
getter : 'T -> ^Value
-
The field getter function.
arg2 : Decoder<IReadOnlyDictionary<string, JsonValue>, (^Value -> 'Rest)>
arg3 : Encoder<IReadOnlyDictionary<string, JsonValue>, 'T>
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'Rest, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
jfieldOpt fieldName getter (arg3, arg4)
Parameters:
string
-
A string that will be used as key to the field.
getter : 'T -> ^Value option
-
The field getter function.
arg2 : Decoder<IReadOnlyDictionary<string, JsonValue>, (^Value option -> 'Rest)>
arg3 : Encoder<IReadOnlyDictionary<string, JsonValue>, 'T>
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'Rest, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
jfieldOptWith (arg1, arg2) fieldName getter (arg5, arg6)
Parameters:
JsonValue -> ^a
arg1 : 'Value -> JsonValue
fieldName : string
-
A string that will be used as key to the field.
getter : 'T -> 'Value option
-
The field getter function.
arg4 : Decoder<IReadOnlyDictionary<string, JsonValue>, ('b option -> 'Rest)>
arg5 : Encoder<IReadOnlyDictionary<string, JsonValue>, 'T>
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'Rest, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
jfieldWith (arg1, arg2) fieldName getter (arg5, arg6)
Parameters:
JsonValue -> Result<'a, DecodeError>
arg1 : 'Value -> JsonValue
fieldName : string
-
A string that will be used as key to the field.
getter : 'T -> 'Value
-
The field getter function.
arg4 : Decoder<IReadOnlyDictionary<string, JsonValue>, ('a -> 'Rest)>
arg5 : Encoder<IReadOnlyDictionary<string, JsonValue>, 'T>
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'Rest, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
jget o key
Parameters:
IReadOnlyDictionary<string, JsonValue>
key : string
Returns: Result<^a, DecodeError>
|
|
Full Usage:
jgetOpt o key
Parameters:
IReadOnlyDictionary<string, JsonValue>
key : string
Returns: Result<^a option, DecodeError>
|
|
Full Usage:
jgetOptWith ofJson o key
Parameters:
JsonValue -> ^a
o : IReadOnlyDictionary<string, JsonValue>
key : string
Returns: Result<'b option, 'c>
|
|
Full Usage:
jgetWith ofJson o key
Parameters:
JsonValue -> Result<'a, DecodeError>
o : IReadOnlyDictionary<string, JsonValue>
key : string
Returns: Result<'a, DecodeError>
|
|
|
|
|
|
Full Usage:
jpairOpt key value
Parameters:
string
value : ^a option
Returns: string * JsonValue
|
|
|
|
Full Usage:
jpairWith toJson key value
Parameters:
'a -> 'b
key : string
value : 'a
Returns: string * 'b
|
|
Full Usage:
jsonObjToValueCodec
Returns: (JsonValue -> Result<IReadOnlyDictionary<string, JsonValue>, DecodeError>) * ('a -> JsonValue)
|
|
Full Usage:
jsonObjectGetValues x
Parameters:
JsonObject
Returns: IReadOnlyDictionary<string, JsonValue>
|
|
|
|
Full Usage:
jsonValueToTextCodec
Returns: (string -> Result<JsonValue, DecodeError>) * (JsonValue -> string)
|
|
|
|
|
|
Full Usage:
retype x
Parameters:
'a
Returns: 'b
|
|
|
|
Full Usage:
withFields f
Parameters:
'a
-
An object constructor as a curried function.
Returns: ('b -> Result<'a, 'c>) * ('d -> IReadOnlyDictionary<'e, 'f>)
The resulting object codec.
|
|
Active pattern | Description |
Full Usage:
(|JArray|JObject|JNumber|JBool|JString|JNull|) o
Parameters:
JsonValue
Returns: Choice<IReadOnlyList<JsonValue>, IReadOnlyDictionary<string, JsonValue>, JsonValue, bool, string, unit>
|
|