How to find a string is Json or not in C++? : I am using #include jansson.h

bool ConvertJsontoString(string inputText, string& OutText)
{
    /* Before doing anything i want to check the inputText is a valid json string or not */ 
}