18 references to ToJsonString
Aspire.Dashboard (2)
Otlp\Model\OtlpHelpers.cs (2)
103
AnyValue.ValueOneofCase.ArrayValue => ConvertAnyValue(value)!.
ToJsonString
(s_jsonSerializerOptions),
104
AnyValue.ValueOneofCase.KvlistValue => ConvertAnyValue(value)!.
ToJsonString
(s_jsonSerializerOptions),
Aspire.Hosting (1)
src\Shared\SecretsStore.cs (1)
68
var json = contents.
ToJsonString
(new()
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
295
resourceConfig["Parameters"] = parameters.
ToJsonString
();
428
var input = parameters.
ToJsonString
() + resource.GetBicepTemplateString();
Aspire.Hosting.Azure.Tests (1)
AzureBicepProvisionerTests.cs (1)
181
config["Parameters"] = parameters0.
ToJsonString
();
ConfigurationSchemaGenerator.Tests (2)
GeneratorTests.cs (2)
1582
var expectedText = expectedJson.
ToJsonString
(s_testSerializerOptions);
1583
var actualText = actualJson.
ToJsonString
(s_testSerializerOptions);
Microsoft.Extensions.AI.OpenAI.Tests (2)
OpenAISerializationTests.cs (2)
727
expected = expectedNode?.
ToJsonString
() ?? "null";
728
actual = actualNode?.
ToJsonString
() ?? "null";
MSBuild (2)
JsonOutputFormatter.cs (1)
25
return _topLevelNode.
ToJsonString
(s_options);
XMake.cs (1)
4646
Console.WriteLine(jsonNode.
ToJsonString
(options));
Shared.Tests (1)
JsonSchemaExporter\JsonSchemaExporterTests.cs (1)
86
Assert.True(schema.
ToJsonString
().Length < 100_000);
System.Text.Json (5)
System\Text\Json\Nodes\JsonArray.cs (2)
356
public string Json => _node.
ToJsonString
();
393
return Value.
ToJsonString
();
System\Text\Json\Nodes\JsonObject.cs (2)
311
public string Json => _node.
ToJsonString
();
354
return $"{PropertyName} = {Value.
ToJsonString
()}";
System\Text\Json\Nodes\JsonValueOfT.cs (1)
139
public string Json => _node.
ToJsonString
();