1611 Commits
Author SHA1 Message Date
James Newton-King 36b605f683 Migrate from sln to slnx (#3058)
CodeQL Advanced / Analyze (csharp) (push) Failing after 21s
2025-05-29 13:35:03 +08:00
James Newton-King bd0773b8f3 Fix warnings (#3031) 2025-03-07 16:37:00 +08:00
Jakub Konecki e794f1dd0a Fixed a typo in CamelCasePropertyNamesContractResolver (#3013) 2025-02-24 15:19:38 +08:00
Bill Robertson e19bc80584 Update JsonConvert.cs (#3018) 2025-02-24 15:19:14 +08:00
Sven BoemerandJames Newton-King 9317d71ac5 Annotate for trim/AOT (in)compatibility (#2980)
Co-authored-by: James Newton-King <james@newtonking.com>
2024-10-11 16:33:15 +08:00
James Newton-King 4738a64817 Update .NET 8 SDK (#2959) 2024-05-28 13:18:47 +08:00
Emma b0d1d0b905 Fix comment on JsonConvert.SerializeObject (#2956) 2024-05-24 12:10:52 +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
Filip Navara 01e1759cac Avoid LINQ expression trees on .NET 6+. (#2902) 2023-09-21 06:45:16 +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-King b15df4b50d Add missing headers 2022-11-24 09:56:09 +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 aae9284e20 Update SDK 2022-08-30 14:32:47 +08:00
James Newton-King 4dc9af66e0 Add roll forward to global.json (#2726) 2022-08-30 13:16:38 +08:00
Eddy Nakamura b8f4ef0f98 Fixing misspelling (#2698) 2022-08-30 12:03:33 +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
AlanLiu90 e42c9e4824 Fixed rare race condition in name table when deserializing on device with ARM processors (#2602) 2022-05-16 09:53:06 +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
Jose Perez Rodriguez 52190a3a3d Enabling NuGet package validation (#2618) 2021-12-05 09:00:46 +13: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
Jacky 233ed3a961 Correction for arrays of more than 2 dimensions
When using the type interpretation for arrays of more than 2 dimensions, on deserialization, an error is encountered.
There is a problem in the switch case that does not allow adding more than one comma between the brackets of System.xxxx [].
View issue #2591
2021-11-14 18:04:58 +13:00
James Newton-King 4fda2ea27e Add embedded README.md (#2596) 2021-11-13 11:07:47 +13:00
Claire Novotny 52e257ee57 Use latest SDK for reproducible builds (#2557) 2021-07-24 16:06:22 +12:00
Andrew Arnott c9e12bc475 Add nullable annotation to JToken.ToObject(Type, JsonSerializer) 2021-07-23 22:21:06 +12: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 ae9fe44e13 Remove compiler package and update sourcelink (#2498) 2021-03-18 08:55:07 +13:00
James Newton-King 11331f50fd Update SDK to 5.0.200 (#2495) 2021-03-12 14:43:15 +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
James Newton-King 926d2f0f42 Enable embed untracked sources (#2471) 2021-02-19 21:36: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