.net 9 text.json rounds long numbers #110927
Labels
area-System.Text.Json
needs-author-action
An issue or pull request that requires more info or actions from the author.
untriaged
New issue has not been triaged by the area owner
Description
i do read the number 326051917762398058 into a long property part of an object
when i do Results.Ok(object) the long property is correctly transformed to a json number but rounded, in the json the number changes to 326051917762398100
Reproduction Steps
create a custom object
add long property to it
create a web api get request and return the custom object and for the property the value 326051917762398058
Expected behavior
the json should contain the number 326051917762398058 and not 326051917762398100
Actual behavior
gives back the wrong number
Regression?
I don't know
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: