I have a JSON file that just has this:
{
"jeff": {
}
}
I would like to check if i enter the name jeff in my input it will just print 123 I have tried it this way in python:
import json
from pprint import pprint
with open('users.json') as f:
data = json.load(f)
print("Hi, would you like to sign up or login?")
print("Type Login for login and Signup to signup")
option= input()
if option == "Login":
unameEntry = input("Please Enter Your Username")
if unameEntry == data[unameEntry] :
print("123")
but it does not find it i have looked around on google and have strougled to find an answer