I have this object from a JSON file
{
"Apple": "Red",
"Orange": "Orange",
"Guava": "Green",
}
Then I converted it into Object using
var data = JSON.parse(dataFromJson);
then it will output JavaScript object
Question
Is it possible to access "Apple", "Orange", "Guava" then store it into var fruits then "Red", "Orange","Green" into var Color