DotNet40Extensions¶
JSON load/deserialize helpers for string, mirroring a subset of Serializer's functionality for call sites that only have a JSON string/path and not a generic serializer reference.
Purpose¶
- JSON load/deserialize helpers for
string, mirroring a subset ofSerializer's functionality for call sites that only have a JSON string/path and not a generic serializer reference.
Context¶
- Namespace:
SAIF.Common.Extensions - Assembly/package:
SAIF.Framework.Common
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| LoadFromJson |
public static T LoadFromJson<T>(this string path) |
Reads a JSON file from path and deserializes it into a T instance. |
| DeserializeFromJson |
public static T DeserializeFromJson<T>(this string json) |
Deserializes a JSON string into a T instance. |
Sources¶
Common/SAIF.Common/Extensions/DotNet40Extensions.cs