Compartir a través de


JsonValueReaderWriter.ToJsonObjectString(String, Object) Method

Definition

Returns a string containg a JSON object whith the specified property and value.

public virtual string ToJsonObjectString(string propertyName, object? value);
abstract member ToJsonObjectString : string * obj -> string
override this.ToJsonObjectString : string * obj -> string
Public Overridable Function ToJsonObjectString (propertyName As String, value As Object) As String

Parameters

propertyName
String

The property name.

value
Object

The value to write.

Returns

The JSON representation of a JSON object whith the specified property and value.

Applies to