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
System.Text.Json.JsonException: The JSON value could not be converted to System.Collections.Generic.ICollection`1[System.Boolean]. Path: $ | LineNumber: 0 | BytePositionInLine: 1.
at System.Text.Json.ThrowHelper.ThrowJsonException(String message, Utf8JsonReader& reader, String path, Exception innerException)
at System.Text.Json.ThrowHelper.ThrowJsonException_DeserializeUnableToConvertValue(Type propertyType, Utf8JsonReader& reader, String path, Exception innerException)
at System.Text.Json.ReadStackFrame.CreateEnumerableValue(Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.HandleStartArray(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& state)
at System.Text.Json.JsonSerializer.ReadCore(JsonSerializerOptions options, Utf8JsonReader& reader, ReadStack& readStack)
at System.Text.Json.JsonSerializer.ReadCore(Type returnType, JsonSerializerOptions options, Utf8JsonReader& reader)
at System.Text.Json.JsonSerializer.ParseCore(String json, Type returnType, JsonSerializerOptions options)
at System.Text.Json.JsonSerializer.Deserialize(String json, Type returnType, JsonSerializerOptions options)`
If I can help with more information please just ask.
Re-opening until we know which milestone to target.
cc @ericstj - this issue is currently tagged as 3.0 but the fix is in master only.
I believe support for built-in collection types outside of System.Collections and System.Collections.Generic
namespaces is out-of-scope for 3.0. And this issue is about handling the collection type from System.Collections.ObjectModel. This can be vNext only if the change is too risky.
Activity
dweatherman commentedon Aug 26, 2019
Closing... just noticed project is referencing preview 7. Will retest with 8.
dweatherman commentedon Aug 26, 2019
Reopening... updated project to preview 8 and same issue occurs.
scalablecory commentedon Aug 26, 2019
CC @ahsonkhan
ahsonkhan commentedon Aug 27, 2019
Looks like serialization works fine for
ObservableCollection<T>which derives fromCollection<T>, but deserialization fails.Is this behavior expected for 3.0, and is this issue a duplicate of https://github.com/dotnet/corefx/issues/40479?
If so, we should be failing gracefully, potentially with NSE.
cc @steveharter, @layomia - please take a look.
ahsonkhan commentedon Aug 29, 2019
Re-opening until we know which milestone to target.
cc @ericstj - this issue is currently tagged as 3.0 but the fix is in master only.
I believe support for built-in collection types outside of
System.CollectionsandSystem.Collections.Genericnamespaces is out-of-scope for 3.0. And this issue is about handling the collection type from
System.Collections.ObjectModel. This can be vNext only if the change is too risky.ahsonkhan commentedon Aug 30, 2019
Moving this to 5.0 since it isn't critical for 3.0.
ahsonkhan commentedon Aug 30, 2019
Fixed in dotnet/corefx#40654