is_json#

pyCGM2.Utils.files.is_json(s)#

Check if a string is valid JSON.

Parameters:

s (str) – The string to check.

Returns:

bool – True if the string is valid JSON, False otherwise.