Closed hipparchus2000 closed 2 months ago
Not reproducible.
Using Newtonsoft.Json 13.0.3 and your example code (swapping StreamWriter with Console.Out and making my own class for barcodeTestResultsList
), the string is being correctly serialized unaltered: https://dotnetfiddle.net/2v328g
deepest apologies, the bug is in imported data.
Source/destination types
Source/destination JSON
Correct "expectedBarcodeBString": "01107587500061821719090611180906104444", Incorrect "expectedBarcodeBString": "011.07588E+131719090611180906104444",
Expected behavior
String property "01107587500061821719090611180906104444" to be serialized and deserialized as "01107587500061821719090611180906104444"
Actual behavior
Newtonsoft jsonconverted partly converts the numeric string to a float: 011.07588E+131719090611180906104444
Steps to reproduce