JSON.parse

The JavaScript function JSON.parse(text) can be used to convert a JSON text into a JavaScript object:

var json = '{"result":true,"count":1}',
    obj = JSON.parse(json);

alert(obj.count);


Reff:http://stackoverflow.com/questions/4935632/parse-json-in-javascript
http://www.w3schools.com/json/json_eval.asp

JSON.parse

User Profile Basic

private static void GetUserProfileProperties(ClientContext contex)
{
var web = contex.Web;
User loginUser = web.CurrentUser;

PeopleManager peoplemanager = new PeopleManager(contex);
PersonProperties personProperits = peoplemanager.GetMyProperties();
contex.Load(personProperits);
contex.ExecuteQuery();

Console.WriteLine(“Account namer” + personProperits.AccountName);
Console.WriteLine(“Email” + personProperits.Email);
Console.WriteLine(“Display Name” + personProperits.DisplayName);
}

Ref:

http://www.vrdmn.com/2015/01/set-user-profile-properties-using-jsom.html

User Profile Basic