JsonHelperDeserializeListT Method

Populates a list of objects from a Json string.

Definition

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

Parameters

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

Type Parameters

T
Generic class or interface.

Return Value

ListT
An empty list is returned if the string could not be converted.

See Also