Extension method from Microsoft.Extensions.Configuration.IConfigurationExtensions
Binds the configuration values to the specified instance using JSON property names for key mapping.
This method respects JsonPropertyNameAttribute when determining configuration keys,
allowing for JSON-style configuration binding with different property naming conventions.
public class MyConfig{ [JsonPropertyName("api_endpoint")] public string ApiEndpoint { get; set; } public int Port { get; set; }}var config = new MyConfig();configuration.BindWithJsonNames(config);// Looks for "api_endpoint" and "Port" in configuration
This method supports automatic type conversion for common types including DateTime, DateTimeOffset,
and all types supported by Type). If a property has a
JsonPropertyNameAttribute, the attribute’s Name value is used as the configuration key;
otherwise, the property name is used directly.