@@ -216,7 +216,7 @@ _ when value.GetType().BaseType?.Name == "Object" => value
216216 JsonValueKind . False => false ,
217217 JsonValueKind . String => String ,
218218 JsonValueKind . Number => Number ,
219- JsonValueKind . Object => Object ,
219+ JsonValueKind . Object => Dictionary ,
220220 JsonValueKind . Array => Array ,
221221 _ => throw new InvalidOperationException ( "Invalid value kind" ) ,
222222 } ;
@@ -264,7 +264,7 @@ _ when value.GetType().BaseType?.Name == "Object" => value
264264 } ;
265265
266266 /// <summary>Get the value as an object (or throw if it isn't an object ValueKind)</summary>
267- public Dictionary < string , ExpressionValue > Object =>
267+ public Dictionary < string , ExpressionValue > Dictionary =>
268268 ValueKind switch
269269 {
270270 JsonValueKind . Object => _objectValue ?? throw new UnreachableException ( $ "{ this } is not an object") ,
@@ -295,7 +295,7 @@ public override string ToString() =>
295295 JsonValueKind . False => "false" ,
296296 JsonValueKind . String => JsonSerializer . Serialize ( String , _unsafeSerializerOptionsForSerializingDates ) ,
297297 JsonValueKind . Number => Number . ToString ( CultureInfo . InvariantCulture ) ,
298- JsonValueKind . Object => JsonSerializer . Serialize ( Object ) ,
298+ JsonValueKind . Object => JsonSerializer . Serialize ( Dictionary ) ,
299299 JsonValueKind . Array => JsonSerializer . Serialize ( Array ) ,
300300 _ => throw new InvalidOperationException ( $ "Invalid value kind { ValueKind } ") ,
301301 } ;
@@ -317,7 +317,7 @@ public override string ToString() =>
317317 JsonValueKind . False => "false" ,
318318 JsonValueKind . String => String ,
319319 JsonValueKind . Number => Number . ToString ( CultureInfo . InvariantCulture ) ,
320- JsonValueKind . Object => JsonSerializer . Serialize ( Object ) ,
320+ JsonValueKind . Object => JsonSerializer . Serialize ( Dictionary ) ,
321321 JsonValueKind . Array => JsonSerializer . Serialize ( Array ) ,
322322 _ => throw new InvalidOperationException ( $ "Invalid value kind { ValueKind } ") ,
323323 } ;
@@ -345,7 +345,7 @@ public override string ToString() =>
345345 { } sValue => sValue ,
346346 } ,
347347 JsonValueKind . Number => Number . ToString ( CultureInfo . InvariantCulture ) ,
348- JsonValueKind . Object => JsonSerializer . Serialize ( Object ) ,
348+ JsonValueKind . Object => JsonSerializer . Serialize ( Dictionary ) ,
349349 JsonValueKind . Array => JsonSerializer . Serialize ( Array ) ,
350350 _ => throw new NotImplementedException ( $ "ToStringForEquals not implemented for { ValueKind } ") ,
351351 } ;
@@ -701,7 +701,7 @@ public override void Write(Utf8JsonWriter writer, ExpressionValue value, JsonSer
701701 writer . WriteNumberValue ( value . Number ) ;
702702 break ;
703703 case JsonValueKind . Object :
704- JsonSerializer . Serialize ( writer , value . Object , options ) ;
704+ JsonSerializer . Serialize ( writer , value . Dictionary , options ) ;
705705 break ;
706706 case JsonValueKind . Array :
707707 JsonSerializer . Serialize ( writer , value . Array , options ) ;
0 commit comments