diff --git a/Doxense.Core/Serialization/JSON/ObjectModel/JsonNull.cs b/Doxense.Core/Serialization/JSON/ObjectModel/JsonNull.cs index 3d277a82e..9012be30f 100644 --- a/Doxense.Core/Serialization/JSON/ObjectModel/JsonNull.cs +++ b/Doxense.Core/Serialization/JSON/ObjectModel/JsonNull.cs @@ -188,12 +188,20 @@ public override JsonValue this[string key] public override JsonValue GetValueOrDefault(string key, JsonValue? defaultValue = null) => defaultValue ?? JsonNull.Missing; + public override JsonValue GetValueOrDefault(ReadOnlyMemory key, JsonValue? defaultValue = null) => defaultValue ?? JsonNull.Missing; + + public override JsonValue GetValueOrDefault(ReadOnlySpan key, JsonValue? defaultValue = null) => defaultValue ?? JsonNull.Missing; + public override JsonValue GetValueOrDefault(int index, JsonValue? defaultValue = null) => defaultValue ?? JsonNull.Missing; public override JsonValue GetValueOrDefault(Index index, JsonValue? defaultValue = null) => defaultValue ?? JsonNull.Missing; public override JsonValue GetValue(string key) => JsonValueExtensions.FailFieldIsNullOrMissing(this, key); + public override JsonValue GetValue(ReadOnlyMemory key) => JsonValueExtensions.FailFieldIsNullOrMissing(this, key.Span); + + public override JsonValue GetValue(ReadOnlySpan key) => JsonValueExtensions.FailFieldIsNullOrMissing(this, key); + public override JsonValue GetValue(int index) => JsonValueExtensions.FailIndexIsNullOrMissing(index, JsonNull.Error); public override JsonValue GetValue(Index index) => JsonValueExtensions.FailIndexIsNullOrMissing(index, JsonNull.Error);