Fix several issues in System.Json
authorSteffen Kieß <Steffen.Kiess@ipvs.uni-stuttgart.de>
Mon, 7 Jul 2014 17:22:29 +0000 (19:22 +0200)
committerSteffen Kieß <Steffen.Kiess@ipvs.uni-stuttgart.de>
Mon, 7 Jul 2014 17:22:29 +0000 (19:22 +0200)
commitb005523cb17989ffc0d2f2662ce7200fb49803b1
tree05301182fdb14931488bb702fcf1263488ca33d8
parent66b9914768e9b8ffe7c1eee0ae5d95b287b49a6c
Fix several issues in System.Json

- Fix detection of extra characters in JSON input
- Fix detection of invalid negative numeric literals
- Disallow leading zeros
- Use "round-trip" format for floating point numbers
- Serialize NaN and Infinity as strings
- Use NumberFormatInfo.InvariantInfo for Convert.To*()
- Use standard number parsing methods in ReadNumericLiteral()
- Add test cases
mcs/class/System.Json/System.Json/JsonPrimitive.cs
mcs/class/System.Json/System.Json/JsonValue.cs
mcs/class/System.Json/Test/System.Json/JsonValueTest.cs
mcs/class/System.ServiceModel.Web/System.Runtime.Serialization.Json/JavaScriptReader.cs