Xhr json with javascript (string instead of function)

Hi,
from a xhr I’ve got this json


"options":
{
"title":"The title",
"axes":{
		"xaxis":{"renderer":"$.jqplot.DateAxisRenderer","min":"Mar 26, 2013","tickInterval":"1 day"},
		"yaxis":{"min":0}
},
"series":{"color":"#F2C780","label":"users","lineWidth":4,"markerOptions":{"style":"square"}},
"legend":{"show":true,"location":"e"}}}

It’s all ok unless
“renderer”:“$.jqplot.DateAxisRenderer”
from js side it’s seen like a string not a function
so
is there a way to fix it ?
From server side I manage the json data like
data.options it’s just an object.

Yes - don’t assign functions as JSON data - it’s not designed to work like that.

Thanks for the point.
I worked it out like:


"xaxis":{"renderer":"DateAxisRenderer","min":"Mar 26, 2013","tickInterval":"1 day"},
if(typeof data.options.axes.xaxis.renderer !== 'undefined'){
	data.options.axes.xaxis.renderer = $.jqplot[data.options.axes.xaxis.renderer];
    var options = data.options.options;
}