JsonUtility.ToJson method (1 of 2)

Converts the object to JSON.

public static string ToJson(object? value)
parameter description
value The value.

Return Value

The JSON.

See Also


JsonUtility.ToJson method (2 of 2)

Converts the object to JSON.

public static string ToJson(object? value, JsonSettings? settings)
parameter description
value The value.
settings The settings.

Return Value

The JSON.

See Also