5 instantiations of JsonDocumentOptions
Microsoft.Build (1)
Construction\Solution\SolutionFile.cs (1)
650JsonDocumentOptions options = new JsonDocumentOptions() { AllowTrailingCommas = true, CommentHandling = JsonCommentHandling.Skip };
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
EmbeddedLanguages\Json\CSharpJsonParserTests.cs (1)
175JsonDocument.Parse(token.ValueText, new JsonDocumentOptions { AllowTrailingCommas = false, CommentHandling = JsonCommentHandling.Disallow });
Microsoft.CodeAnalysis.Features (1)
PdbSourceDocument\SourceLinkMap.cs (1)
72var root = JsonDocument.Parse(json, new JsonDocumentOptions() { AllowTrailingCommas = true }).RootElement;
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
24var jsonDocumentOptions = new JsonDocumentOptions
System.Text.Json (1)
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1024return new JsonDocumentOptions
30 references to JsonDocumentOptions
Microsoft.Build (1)
Construction\Solution\SolutionFile.cs (1)
650JsonDocumentOptions options = new JsonDocumentOptions() { AllowTrailingCommas = true, CommentHandling = JsonCommentHandling.Skip };
Microsoft.CodeAnalysis.Features (3)
EmbeddedLanguages\Json\LanguageServices\JsonLanguageDetector.cs (3)
166if (exprType.Name != nameof(JsonDocumentOptions)) 186if (syntaxFacts.StringComparer.Equals(propName, nameof(JsonDocumentOptions.AllowTrailingCommas)) && 191else if (syntaxFacts.StringComparer.Equals(propName, nameof(JsonDocumentOptions.CommentHandling)) &&
Microsoft.Extensions.Configuration.Json (1)
JsonConfigurationFileParser.cs (1)
24var jsonDocumentOptions = new JsonDocumentOptions
System.Text.Json (25)
System\Text\Json\Document\JsonDocument.Parse.cs (15)
47public static JsonDocument Parse(ReadOnlyMemory<byte> utf8Json, JsonDocumentOptions options = default) 77public static JsonDocument Parse(ReadOnlySequence<byte> utf8Json, JsonDocumentOptions options = default) 118public static JsonDocument Parse(Stream utf8Json, JsonDocumentOptions options = default) 140internal static JsonDocument ParseRented(PooledByteBufferWriter utf8Json, JsonDocumentOptions options = default) 149internal static JsonDocument ParseValue(Stream utf8Json, JsonDocumentOptions options) 166internal static JsonDocument ParseValue(ReadOnlySpan<byte> utf8Json, JsonDocumentOptions options) 174internal static JsonDocument ParseValue(string json, JsonDocumentOptions options) 198JsonDocumentOptions options = default, 211JsonDocumentOptions options = default, 231JsonDocumentOptions options = default, 266public static JsonDocument Parse([StringSyntax(StringSyntaxAttribute.Json)] ReadOnlyMemory<char> json, JsonDocumentOptions options = default) 291internal static JsonDocument ParseValue(ReadOnlyMemory<char> json, JsonDocumentOptions options) 330public static JsonDocument Parse([StringSyntax(StringSyntaxAttribute.Json)] string json, JsonDocumentOptions options = default) 704var stack = new StackRowStack(JsonDocumentOptions.DefaultMaxDepth * StackRow.Size); 747var stack = new StackRowStack(JsonDocumentOptions.DefaultMaxDepth * StackRow.Size);
System\Text\Json\Document\JsonElement.Parse.cs (3)
56internal static JsonElement ParseValue(Stream utf8Json, JsonDocumentOptions options) 62internal static JsonElement ParseValue(ReadOnlySpan<byte> utf8Json, JsonDocumentOptions options) 68internal static JsonElement ParseValue(string json, JsonDocumentOptions options)
System\Text\Json\Nodes\JsonNode.Parse.cs (6)
73JsonDocumentOptions documentOptions = default(JsonDocumentOptions)) 99JsonDocumentOptions documentOptions = default(JsonDocumentOptions)) 121JsonDocumentOptions documentOptions = default) 149JsonDocumentOptions documentOptions = default,
System\Text\Json\Serialization\JsonSerializerOptions.cs (1)
1022internal JsonDocumentOptions GetDocumentOptions()