var sym = esri.symbol.fromJson({ "color" : [255, 0, 0, 128],
"width" : 6,
"type" : "esriCLS",
"style" : "esriSLSSolid",
"cap" : "esriLCSRound",
"join" : "esriLJSRound"
});
This returns a null.UpdateAs a work around I tested for the "cap" property since CartographicLineSymbol is the only onethat has it.
function GetSymbol(jsonSymbol) {
if (jsonSymbol.cap)
return new esri.symbol.CartographicLineSymbol(jsonSymbol);
else
return esri.symbol.fromJson(jsonSymbol);
}