JSONParserFromJsonT Method |
Transforms a JSON string into the object of type T.
Namespace:
TinyJson
Assembly:
Ptv.XServer.Controls.Map (in Ptv.XServer.Controls.Map.dll) Version: 1.7.10.0
Syntax public static T FromJson<T>(
this string json
)
<ExtensionAttribute>
Public Shared Function FromJson(Of T) (
json As String
) As T
public:
[ExtensionAttribute]
generic<typename T>
static T FromJson(
String^ json
)
[<ExtensionAttribute>]
static member FromJson :
json : string -> 'T
Parameters
- json
- Type: SystemString
String to convert.
Type Parameters
- T
- Type to which the JSON string is converted.
Return Value
Type:
TUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also