Create a Python program to decide whether a given string is a valid JSON or an invalid one.
import json

def is_valid_json(string):
    try:
        json.loads(string)
        return True
    except:
        return False