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