Namespace: Fleece
Assembly: Fleece.SystemTextJson.dll
Parent Module: SystemTextJsonFunction or value | Description |
|
|
|
|
Full Usage:
o .@ key
Parameters:
IReadOnlyDictionary<string, JsonValue>
key : string
Returns: Result<^a, DecodeError>
|
|
Full Usage:
o .@? key
Parameters:
IReadOnlyDictionary<string, JsonValue>
key : string
Returns: Result<^a option, DecodeError>
|
|
Full Usage:
f (fieldName, getter)
Parameters:
^Value -> 'a
-
An object initializer as a curried function.
fieldName : string
-
A string that will be used as key to the field.
getter : 'T -> ^Value
-
The field getter function.
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'a, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
f (fieldName, getter)
Parameters:
^Value option -> 'a
-
An object initializer as a curried function.
fieldName : string
-
A string that will be used as key to the field.
getter : 'T -> ^Value option
-
The field getter function.
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'a, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
(arg1, arg2) <*/> (fieldName, getter)
Parameters:
Decoder<IReadOnlyDictionary<string, JsonValue>, (^Value -> 'Rest)>
arg1 : Encoder<IReadOnlyDictionary<string, JsonValue>, 'T>
fieldName : string
-
A string that will be used as key to the field.
getter : 'T -> ^Value
-
The field getter function.
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'Rest, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
(arg1, arg2) <*/?> (fieldName, getter)
Parameters:
Decoder<IReadOnlyDictionary<string, JsonValue>, (^Value option -> 'Rest)>
arg1 : Encoder<IReadOnlyDictionary<string, JsonValue>, 'T>
fieldName : string
-
A string that will be used as key to the field.
getter : 'T -> ^Value option
-
The field getter function.
Returns: (IReadOnlyDictionary<string, JsonValue> -> Result<'Rest, DecodeError>) * ('T -> IReadOnlyDictionary<string, JsonValue>)
The resulting object codec.
|
|
Full Usage:
a ^= b
Parameters:
'a
b : 'b
Returns: 'a * 'b
|
|
Full Usage:
jchoice codecs
Parameters:
seq<ConcreteCodec<^S, ^S, 't1, 't2>>
Returns: ConcreteCodec<^S, ^S, 't1, 't2>
|
|
Full Usage:
jgetFromListOptWith decoder o key
Parameters:
JsonValue -> ^a
o : KeyValuePair<string, JsonValue> list
key : string
Returns: Result<'b option, 'c>
|
|
Full Usage:
jgetFromListWith decoder o key
Parameters:
JsonValue -> Result<'a, DecodeError>
o : KeyValuePair<string, JsonValue> list
key : string
Returns: Result<'a, DecodeError>
|
|
Full Usage:
jopt prop getter
Parameters:
string
getter : 'a -> ^b option
Returns: ConcreteCodec<KeyValuePair<string, JsonValue> list, KeyValuePair<string, JsonValue> list, ^b option, 'a>
|
|
Full Usage:
joptWith (arg1, arg2) prop getter
Parameters:
JsonValue -> ^a
arg1 : 'Value -> 'd
prop : string
getter : 'e -> 'Value option
Returns: ConcreteCodec<KeyValuePair<string, JsonValue> list, KeyValuePair<string, 'd> list, 'b option, 'e>
|
|
Full Usage:
jreq name getter
Parameters:
string
getter : 'T -> ^param option
Returns: ConcreteCodec<KeyValuePair<string, JsonValue> list, KeyValuePair<string, JsonValue> list, ^param, 'T>
|
|
Full Usage:
jreqWith (arg1, arg2) prop getter
Parameters:
JsonValue -> Result<'a, DecodeError>
arg1 : 'Value -> 'b
prop : string
getter : 'T -> 'Value option
Returns: ConcreteCodec<KeyValuePair<string, JsonValue> list, KeyValuePair<string, 'b> list, 'a, 'T>
|
|