'how to get json data and print on console using angular

{
    "appInfo": {
        "entityName": "Furnitue",
        "email": "",
        "appName": "appsw"
    },
    "generatedEntity": {
        "fluentMethods": true,
        "clientRootFolder": "",
        "relationships": [
            {
                "relationshipName": "home",
                "otherEntityName": "home",
                "relationshipType": "one-to-many",
                "otherEntityRelationshipName": "furnitue"
            }
        ]
    }
}

I tried like this,

theappInfo=config.relations.appInfo;
console.log(theappInfo);

but the result is undefined



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source