You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The _jkey returns Some for undefined or missing keys.
#r "nuget: Fleece.FSharpData, 0.10.0"openFleeceopenFleece.FSharpDataopenFSharp.DataopenFleece.FSharpData.LensopenFSharpPlusopenFSharpPlus.Lens
JsonValue.Parse("{ \"b\": 200}")^?(_jkey "a");;// val it: JsonValue option = Some null
#r "nuget: Fleece.NewtonsoftJson, 0.10.0"openFleeceopenFleece.NewtonsoftopenFleece.Newtonsoft.LensopenFSharpPlusopenFSharpPlus.Lens
JsonValue.Parse("{ \"b\": 200}")^?(_jkey "a");;// val it: JsonValue option = Some <seq>
The text was updated successfully, but these errors were encountered:
wallymathieu
changed the title
_jkey for undefined or missing value should return null not Some
_jkey for undefined or missing value should return None not Some
Jan 22, 2023
Expected behavior
When you read non existing keys using
_jkey
should returnNone
.Actual behavior
The
_jkey
returnsSome
forundefined
or missing keys.The text was updated successfully, but these errors were encountered: