Query/JSON: throw better exception when expecting array of objects, but the JSON represents a single object
Open
area-json
customer-reported
- Dominant language
- C#
- Stars
- 14.8k
- Forks
- 3.4k
- PR merge metrics
- PR metrics pending
Description
pointed out by @aldrashan here: https://github.com/dotnet/efcore/pull/33101#issuecomment-2056718437
Basically when the mismatch happens we throw `Invalid token type: 'StartObject'`. We should throw a better exception.
Contributor guide
Assessment
This issue has not been assessed yet.