JSON Jumpstart


/**
* In JSON curly braket is a sign of a new object ({ or })
* Any variable inside the object, also known as object's attribute, is accessible using a period sign (.) object.attribute
* or you can also acces it using an "associative array" such as object['attribute']
* You'll need a Firefox with Firebug extension to see the result from console.log or IE9 with its built-in Developer Tools
*
*/

// =========================
// JSON Object
// =========================
var var1 = {
'var1_1':'value1_1',
'var1_2':'value1_2'
};
console.log(var1);
// The line above will output> Object { var1_1="value1_1", var1_2="value1_2"}
console.log(var1.var1_1);
// The line above will output> value1_1
console.log(var1['var1_1']);
// The line above will output> value1_1

// =========================
// JSON Array
// =========================
// In JSON square braket is a sign of an array ([ or ])
// Any array element is accessible by using a square bracket and followed by an index (0,1,2,...)
var var2 = ['value2_1', 'value2_2'];
console.log(var2);
// The line above will output> ["value2_1", "value2_2"]
console.log(var2[0]);
// The line above will output> value2_1

var var3 = [{
'var3_1':'value3_1',
'var3_2':'value3_2'
},{
'var3_3':'value3_3',
'var3_4':'value3_4'
}];
console.log(var3);
// The line above will output> [Object { var3_1="value3_1", var3_2="value3_2"}, Object { var3_3="value3_3", var3_4="value3_4"}]
console.log(var3[0].var3_1);
// The line above will output> value3_1

Vodafone Group, AT&T, and Verizon are The Biggest Yielding Companies In November 2011

Vodafone Group, the telecom giant known for its land line and wireless services around the U.S and U.K, together with two other U.S based telecom giants AT&T and Verizon are one of the best yielding companies in Nov 2011. As per today’s data, 2011-11-02, Vodafone is yielding 6.8% yearly, AT&T 5.9% and Verizon is 5.3%. Is this a good time to invest in these telecom companies? You might also want to see the list of stocks with the highest yield displayed in www.greenandredmarket.com‘s highest yield page.