1231 Commits
Author SHA1 Message Date
James Newton-King bd0773b8f3 Fix warnings (#3031) 2025-03-07 16:37:00 +08:00
James Newton-King 4738a64817 Update .NET 8 SDK (#2959) 2024-05-28 13:18:47 +08:00
George PollardandJames Newton-King 2eaa475f88 Author fuzz tests and fix a comment-related issue (#2935)
Co-authored-by: James Newton-King <james@newtonking.com>
2024-04-17 08:22:10 +08:00
George PollardandJames Newton-King 55a7204f9b Fix handling of empty constructor names (#2922)
Co-authored-by: James Newton-King <james@newtonking.com>
2023-12-07 08:31:00 +08:00
Dylan Musil 57025815e5 Fix: Null String being reported as String rather than JTokenType.Null (#2796)
Fixes https://github.com/JamesNK/Newtonsoft.Json/issues/2775
2023-01-16 17:08:14 +08:00
James Newton-King c908de3017 Fix not returning negative double from box cache (#2777) 2022-12-16 20:39:41 +08:00
James Newton-King 2afdccdb63 Fix parsed decimal losing trailing zeroes (#2769) 2022-12-08 21:51:00 +08:00
James Newton-KingandSneha Shivakumar b13717a1c1 Add JsonCloneSettings to disable copy annotations (#2757)
Co-authored-by: Sneha Shivakumar <snshivakumar@microsoft.com>
2022-11-14 08:55:47 +08:00
James Newton-King d0a328e8a4 Fix MaxDepth not being used with ISerializable deserialization (#2736) 2022-09-13 08:08:02 +08:00
James Newton-King cb9eed9666 Fix deserializing via constructor with ignored base type properties (#2711) 2022-08-04 15:02:55 +08:00
James Newton-King 94ff24f815 Fix blocking IO in JsonTextWriter.CloseAsync and add IAsyncDisposable (#2695) 2022-06-16 17:33:59 +08:00
James Newton-King f0dcd5b434 Add support for DateOnly and TimeOnly (#2679) 2022-05-16 21:02:57 +08:00
James Newton-King 5803c7722a Update .NET 6 tests (#2678) 2022-05-16 17:13:53 +08:00
James Newton-King bf2e2a78e8 Add .NET 6 target (#2677) 2022-05-16 16:12:52 +08:00
James Newton-KingandMatthew Steeples 71be691f92 Add copy constructor to JsonSerializerSettings (#2676)
Co-authored-by: Matthew Steeples <matthew@ledgerscope.com>
2022-05-16 09:34:38 +08:00
7f78562d44 Add support to pre-epoch Unix time (#2614)
Co-authored-by: Max A. Kiselev <kiselevma@gmail.com>
Co-authored-by: James Newton-King <james@newtonking.com>
2022-05-15 22:43:37 +08:00
13717cfc45 implement box avoidance (#2639)
Co-authored-by: Marc Gravell <marcgravell@microsoft.com>
Co-authored-by: James Newton-King <james@newtonking.com>
2022-05-15 22:08:18 +08:00
James Newton-King 197c6db94a Update tests to use .NET 6 (#2674) 2022-05-15 21:40:07 +08:00
James Newton-King a45ef9f2d9 Update pipelines image to VS2022 and fix build warnings (#2619) 2021-12-02 15:25:33 +13:00
James Newton-King af6e7b9c13 Refactor type name multidimensional array support and add tests 2021-11-14 18:04:58 +13:00
James Newton-King e44ab3348f Fix merging enumerable content and validate content (#2531) 2021-05-15 13:45:00 +12:00
James Newton-King 2b0f7a2492 Fix deserializing mistmatched JToken types in properties (#2530) 2021-05-15 11:40:11 +12:00
James Newton-King f7e7bd05d9 Fix MaxDepth when used with ToObject inside of a JsonConverter (#2505) 2021-03-31 15:57:25 +13:00
James Newton-King 1745d7c14e Fix JTokenWriter when writing comment to an object (#2493) 2021-03-11 21:53:58 +13:00
James Newton-King 583eb12015 Fix missing error when deserializing JToken with a contract type mismatch (#2494) 2021-03-11 21:42:55 +13:00
James Newton-King b6dc05be5a Change MaxDepth default to 64 (#2473) 2021-02-21 15:13:51 +13:00
James Newton-King 15525f1c44 Fix JsonWriter.WriteToken to allow null with string token (#2472) 2021-02-21 13:09:54 +13:00
David Omid 0a56633b6c Fixes #2372 - variable typos (#2465) 2021-02-19 10:37:30 +13:00
James Newton-King 7e77bbe1be Change JsonReader and JsonSerializer default max depth to 128 (#2462) 2021-01-31 15:57:06 +13:00
James Newton-King 42139ea6cd Add JsonSelectSettings and regex timeout 2021-01-17 18:23:19 +13:00
serpentfabric 95a6eb3ac5 jpath regex timeout support added for a single regex expression, global umbrella for all regex calls, and support for allowing regex calls to get compiled if necessary
require users to set a global cancellation token themselves, to avoid a potential unmanaged memory leak, which cleans up the code a bunch and fixes the failing tests

fix tests so cached regex's don't cause one test to fail using prior tests timeout...

handle the global timeout of multitoken regex internally and test for it
2021-01-17 18:23:19 +13:00
James Newton-King 1403f5d329 Fix serializing nullable struct dictionaries (#2452) 2021-01-07 08:46:45 +13:00
James Newton-King 60be32f46e Use naming strategy when deserializing dictionary enum keys (#2448) 2021-01-01 21:16:44 +13:00
James Newton-King ff5ffb2832 Copy annotations when cloning elements (#2442) 2021-01-01 19:25:57 +13:00
VereshchaginKonstantin 6795ca55f4 Fixed tests to work in Moscow, Russia UTC+3 timezone. (#2416) 2020-11-20 17:21:00 +13:00
James Newton-King a222c8b69c Update to net50 and fix warnings (#2424) 2020-11-20 16:35:24 +13:00
James Newton-King 936acbf622 Update version to 13.0.1-beta and remove portable builds (#2228) 2019-11-30 17:29:13 +13:00
everfor 9be95e0f6a Do not treat ignored field as missing member when deserializing from overriden json constructor (#2224) 2019-11-30 11:16:00 +13:00
James Newton-King 23be46f665 Fix using StringEnumConverter with naming strategy and specifie… (#2186) 2019-10-05 20:50:12 +13:00
TylerBrinkley ff6f51b667 Added KebabCaseNamingStrategy 2019-10-05 19:49:18 +13:00
James Newton-King baa1e21612 Fix deserializing incomplete JSON object to JObject (#2181) 2019-09-30 16:34:39 +13:00
James Newton-King 541eab2fbd Fix JSONPath scanning with nested indexer (#2180) 2019-09-30 14:26:52 +13:00
James Newton-King c89d6addf1 Update dependencies from .NET Core 3.0 (#2179) 2019-09-30 12:46:29 +13:00
James Newton-King 3219c47f74 Fix hang when deserializing JTokenReader with preceding comment (#2178) 2019-09-30 11:45:19 +13:00
James Newton-King 8e4261a350 Fix deserializing into constructors with more than 256 paramete… (#2177) 2019-09-29 22:42:22 +13:00
James Newton-King 7cc65dab82 Deserializing immutable set and dictionary create hash impls (#2159) 2019-09-13 08:54:57 +12:00
James Newton-King a213bac448 Fix deserialize via ctor with some existing collection types (#2151) 2019-09-08 20:46:20 +12:00
James Newton-King 2ec997d3a7 Fix JToken nullable support 2019-08-22 14:09:18 +12:00
James Newton-King e82421145b Add test with escaped JSON Path (#2138) 2019-08-19 13:35:19 +12:00
James Newton-King 5eac02a797 Run unit tests on .NET Core 3.0 and fix Enumerable.Empty (#2137) 2019-08-19 12:57:09 +12:00