JsonSerializable.toJson Method

定义

重载

toJson()

Converts to a JSON string.

toJson(SerializationFormattingPolicy formattingPolicy)

Converts to a JSON string.

toJson()

Converts to a JSON string.

public String toJson()

返回

String

the JSON string.

toJson(SerializationFormattingPolicy formattingPolicy)

Converts to a JSON string.

public String toJson(SerializationFormattingPolicy formattingPolicy)

参数

formattingPolicy
SerializationFormattingPolicy

the formatting policy instance

返回

String

the JSON string.

适用于