-Added JsonLoadSettings

-Added CommentsHandling
-Changed LINQ to JSON load to ignore array comments by default
This commit is contained in:
James Newton-King
2015-10-06 22:17:25 +13:00
parent 172c1d8f30
commit 2bf31b9605
22 changed files with 366 additions and 68 deletions
@@ -0,0 +1,17 @@
namespace Newtonsoft.Json.Linq
{
/// <summary>
/// Specifies how JSON comments are handled when loading JSON.
/// </summary>
public enum CommentHandling
{
/// <summary>
/// Ignore comments.
/// </summary>
Ignore = 0,
/// <summary>
/// Load comments as a <see cref="JValue"/> with type <see cref="JTokenType.Comment"/>.
/// </summary>
Load = 1
}
}