Answer the question
In order to leave comments, you need to log in
How to convert data string to Json?
How can I convert this string to Json?
user_name=at&password=3
Answer the question
In order to leave comments, you need to log in
Do you have url?
var url = new URL(urlString);
var user = url.searchParams.get("user_name");
var pass = url.searchParams.get("password");
var ob = {user_name:user, pass:password}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question