elgonzo

Results 144 comments of elgonzo

Write a custom JsonConverter that converts a value to a string and writes the converted string value directly to the JsonWriter used by the serializer. The converter could possibly be...

Nice catch. I believe the issue is with the condition in this _if_ statement: https://github.com/JamesNK/Newtonsoft.Json/blob/0a2e291c0d9c0c7675d445703e51750363a549ef/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs#L1488-L1491 with `decimalMaxValueHi28` and `decimalMaxValueLo1` defined as: https://github.com/JamesNK/Newtonsoft.Json/blob/0a2e291c0d9c0c7675d445703e51750363a549ef/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs#L1294 https://github.com/JamesNK/Newtonsoft.Json/blob/0a2e291c0d9c0c7675d445703e51750363a549ef/Src/Newtonsoft.Json/Utilities/ConvertUtils.cs#L1297 Consider that the max value for the...

And there is an related issue when trying to consume numbers from `79228162514264337593543950335.5` to `79228162514264337593543950335.9*` (or their respective negative counterparts). These should result in a JsonReaderException, but instead also result...

It's debatable whether this is a bug requiring a fix or whether this is intentional behavior, and since i am not the author nor a maintainer of Newtonsoft.Json i leave...

Not reproducible. Please make sure that the example code you include in your report actually demonstrates the issue you are reporting. This includes verifying that the provided example code exhibits...

As a user of the library who is not related and not associated with the project author/maintainers and to add to @sungam3r comment, note that the Newtonsoft.Json library is entirely...

Newtonsoft.Json treats `$type` and some other json property names starting with "$" as metadata keywords by default and not as ordinary property names, unless you deactivate the handling of metadata...

> Steps to reproduce > See above No, these are not steps to reproduce. That's like saying the recipe for chocolate cookies is: Bake! Arguably, providing a relatively compact code...

That there is no exception being thrown for ignored members is logical and expected behavior and no bug. Because the member is _not_ missing, it is just ignored. One relatively...

There is no error in the output of the web application. Rather, the Intellisense output of the WPF app does not align with Newtonsoft.Json's default deserialization settings. By default (unless...