In my sample login form, I am trying to connect to json and get the result ie., true, if username and password matches, else false.
json (exists in my project folder)
{
"form": {
"login": [
{
"username": "venkat",
"password": "123"
},
{
"username": "admin",
"password": "345"
}
]
}
I created a function like below. But I don't know what to do next. The sencha documentation has methods like ajax, proxy for MVC architecture, which I am not using.
function checkJson(username, password){
//What should I write here?
//Return true, if match
//else false
}