| | 1 | | // -------------------------------------------------------------------------------- |
| | 2 | | // Copyright (C) 2025 Eugene Eremeev (also known as Yevhenii Yeriemeieiv). |
| | 3 | | // All Rights Reserved. |
| | 4 | | // -------------------------------------------------------------------------------- |
| | 5 | | // This software is the confidential and proprietary information of Eugene Eremeev |
| | 6 | | // (also known as Yevhenii Yeriemeieiv) ("Confidential Information"). You shall not |
| | 7 | | // disclose such Confidential Information and shall use it only in accordance with |
| | 8 | | // the terms of the license agreement you entered into with Eugene Eremeev (also |
| | 9 | | // known as Yevhenii Yeriemeieiv). |
| | 10 | | // -------------------------------------------------------------------------------- |
| | 11 | |
|
| | 12 | | using System.Text.Json; |
| | 13 | |
|
| | 14 | | namespace LeetCode.Core.Helpers; |
| | 15 | |
|
| | 16 | | internal static class JsonHelperOptions |
| | 17 | | { |
| 2 | 18 | | public static readonly JsonSerializerOptions JsonSerializerOptions = new() |
| 2 | 19 | | { |
| 2 | 20 | | AllowTrailingCommas = true, |
| 2 | 21 | | PropertyNameCaseInsensitive = true |
| 2 | 22 | | }; |
| | 23 | |
|
| 2 | 24 | | public static readonly JsonDocumentOptions JsonDocumentOptions = new() |
| 2 | 25 | | { |
| 2 | 26 | | AllowTrailingCommas = true |
| 2 | 27 | | }; |
| | 28 | | } |