Method IsValidJson
IsValidJson(string)
Checks whether specified string a valid json text.
public static bool IsValidJson(string s)
Parameters
s
stringString to check.
Returns
- bool
true
ifs
is a valid json string; otherwise returnsfalse
.
Checks whether specified string a valid json text.
public static bool IsValidJson(string s)
s
stringString to check.
true
if s
is a valid json string;
otherwise returns false
.