I currently have a query from php
outputting json
that is one simple value. The json looks like this {"value":53}
. I am trying to set that value as a variable in jquery function. The json I have is this and have tried all suggestions and ways that I have found but it still does not set that as a variable.
My current code in jquery is this:
var test =
$.ajax({
url: "ajax/graphs.ajax.php",
dataType: "json",
data: { get_param: 'value' },
success: function(data) {
return data;
}
})
Any help or guidance is appreciated.