Closed
Description
Description
With Newtonsoft:
var obj = JsonConvert.DeserializeObject<dynamic>("{ x: "something" }");
You will get correct dynamic object with obj.x
being something
.
but using Text.Json serializer you get obj.x
to be null or empty array []
Reproduction Steps
deserialize string to dynamic
Expected behavior
to get dynamic object with dynamic properties have correct values
Actual behavior
we get dynamic object but with empty properties or properties assigned to empty arrays
Regression?
No response
Known Workarounds
use Newtonsoft
Configuration
No response
Other information
No response