JsonUtility.ToJsonByteCount method (1 of 2)

Returns the number of bytes used by the JSON of an object.

public static int ToJsonByteCount(object value)
parameter description
value The value.

Return Value

The number of bytes used by the JSON of an object.

See Also


JsonUtility.ToJsonByteCount method (2 of 2)

Returns the number of bytes used by the JSON of an object.

public static int ToJsonByteCount(object value, JsonSettings? settings)
parameter description
value The value.
settings The settings.

Return Value

The number of bytes used by the JSON of an object.

See Also