This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Grype.
Summary
Parses JSON without throwing.
Syntax
protected static bool TryParseJson<T>(string json, out T value) where T : class
Type Parameters
| Name |
Description |
| T |
The result type. |
Parameters
| Name |
Type |
Description |
| json |
string |
The JSON text. |
| value |
T |
The parsed value, or null. |
Return Value
| Type |
Description |
| bool |
true if the text is a JSON value of the requested shape. |