Hello guys i'm working with user login and when an user submits the login credentials an API is being called using ajax and if the login credentails are correct/ wrong i'm getting the response and after stringifying the data is displayed in the following format in console.
If true {"$P_SUCCESS":true}
If false {"$P_SUCCESS":false}
Now i want to read the value true from the above string and want to redirect an user to a new page based on the condition.
I tried different options but all in vain.
Thanks for your help in advance.