Because your object contains a property C1, not c1. JavaScript is case-sensitive, and you need to take care of that. Use this,
var f = data.C1;
Since your alert is showing undefined, it clearly means that the property is undefined, the object is not. If the data was undefined, it would have said "
cannot read property 'c1' of undefined". If, however, the data was of another type, then it would have said something or similar to the second error.