Method IsValidJson
IsValidJson(string)
Checks whether specified string a valid json text.
public static bool IsValidJson(string s)
Parameters
sstringString to check.
Returns
- bool
trueifsis 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.