Converting types of values like that: var byId = true, config = { numeric: ["value"], date: ["date"] } var json = jQuery("#myform").getJSON(byId, config); typeof json.value === "number" Object.prototype.toString.call(json.date) === "[object Date]"
Converting types of values like that:
var byId = true,
config = {
numeric: ["value"],
date: ["date"]
}
var json = jQuery("#myform").getJSON(byId, config);
typeof json.value === "number"
Object.prototype.toString.call(json.date) === "[object Date]"