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