dim d as Xojo.Core.Dictionary = Xojo.Data.ParseJSON( kThatJSON )
dim key1 as string = "CompleteTimestamp"
dim key2 as string = "CompletedUserId"
dim a1 as auto = d.Value( key1 ) // This is fine
dim a2 as auto = d.Value( key2 ) // KeyNotFoundException What?!?
If instead you use Text keys, or recreate this as a “normal” Dictionary (not the case-sensitive one produced by ParseJSON), it works. See the report and a better example project at:
Julian, it doesn’t have to do with the values. When I found the issue, the keys all had values assigned, and there were a lot more of them.
Eli, that’s interesting. But as noted, only when you try to use a string key, not text. Is there a Feedback report about this already? If so, I’ll make a note in mine to link them.