GrypeTool<TSettings>.

TryParseJson<T>(string, T) Method

Summary

Parses JSON without throwing.
Assembly
Cake.Grype.dll
Namespace
Cake.Grype
Containing Type
GrypeTool<TSettings>

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.