i am trying to get form values in json format on button click the code is..
$('#submit').click(function() {
var form = $("#user_info");
var data =form.serialize();
console.log(data)
but i am getting values like
userfnmae=xyz&userlname=xyz&[email protected]&useremail= xyz&usercity=zzz&userlocation=abc&userproduct=xyz&usercomment=xyz
but i want data in json format.