MtJsonHandlerToJsonByteArrayT Method

Transforms a MobileTrack object (or any other object) into JSON as a UTF8 Byte Array

Definition

Namespace: MobileTrack.Common.Services.JsonConverters
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public static byte[] ToJsonByteArray<T>(
	T obj
)

Parameters

obj  T
The object to convert

Type Parameters

T
The type to convert the object into

Return Value

Byte
the Json string

Exceptions

ArgumentNullExceptionThrown if obj is , or if T is not included in the SourceGenerationContext.

See Also