Write a Python program to check if a provided string is valid JSON.
"<noinput>"
def is_valid_json(s):
    valid = True
    try:
        json.loads(s)
    except ValueError:
        valid = False
    return valid