<gh_stars>10-100
import json

json_data = '{}'  # try: json_data = 2, and json_data = '{{'

try:
    data = json.loads(json_data)
except (ValueError, TypeError) as e:
    print(type(e), e)

import json

json_data = '{}'  # try: json_data = 2, and json_data = '{{'

try:
    data = json.loads(json_data)
except (ValueError, TypeError) as e:
    print(type(e), e)
# try: json_data = 2, and json_data = '{{'