When using SQL Server, you can use the ISJSON() function to test whether or not a string expression contains valid JSON.
If the expression contains valid JSON, ISJSON() returns 1, otherwise it returns 0.
From SQL Server 2022, we also have the option of testing for a specific JSON type.