JsonHelperDeserializeJsonT Method

Reads a Json string and populates an object.

Definition

Namespace: Common.Core.Classes
Assembly: Common.Core (in Common.Core.dll) Version: 2.1.5
C#
public static T DeserializeJson<T>(
	ref string json,
	JsonSerializerOptions? options = null
)
where T : class

Parameters

json  String
Json string.
options  JsonSerializerOptions  (Optional)
Optional Json serializer options.

Type Parameters

T
Generic class or interface.

Return Value

T
is returned if the object could not be populated.

See Also