Namespace: Fleece
Assembly: Fleece.NewtonsoftJson.dll
Function or value | Description |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
dictAsProps x
Parameters:
IReadOnlyDictionary<string, JToken>
Returns: (string * JToken)[]
|
|
|
|
|
|
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:
jpairWith toJson key value
Parameters:
'a -> 'b
key : string
value : 'a
Returns: string * 'b
|
|
Full Usage:
jsonObjToValueCodec
Returns: ('a -> Result<IReadOnlyDictionary<string, JToken>, DecodeError>) * ('b -> JToken)
|
|
Full Usage:
jsonObjectGetValues x
Parameters:
JObject
Returns: IReadOnlyDictionary<string, JToken>
|
|
|
|
Full Usage:
jsonValueToTextCodec
Returns: (string -> Result<JToken, 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.
|
|
Type extension | Description |
Full Usage:
this.AsReadOnlyDictionary()
Parameters:
unit
Returns: IReadOnlyDictionary<string, JToken>
|
Extended Type:
|
Full Usage:
JObject.GetValues(x)
Parameters:
JObject
Returns: IReadOnlyDictionary<string, JToken>
|
Extended Type:
|
Active pattern | Description |
Full Usage:
(|JArray|JObject|JNumber|JBool|JString|JNull|JDate|) o
Parameters:
JToken
Returns: Choice<IReadOnlyList<JToken>, IReadOnlyDictionary<string, JToken>, JToken, bool, string, unit, JToken>
|
|