is_json function

Check if the provided string is in valid JSON format.