I have a json file like this
{
  "user": {
    "age": 23,
    "firstName": "somebody"
    "height": "175"
    "weight": "75"
    "gender": "male"
  }
}
I also have a file index.js, in which I'm loading the file with
let profileData = "./profile.json";
$.getJSON(profile,processProfileData);
In the same file, I have a function
function processProfileData(data){
    let profileName = document.getElementById('firstName');
    profileName.innerHTML = data.firstName;
}
All i want to do, is to show only the "firstName" in my index.html file, in a container. My code is like this:
<div class="container">
    <div class="row">
        <div class="col-12">
            <div id="displayName"></div>
        </div>
    </div>
</div>
(I have inserted in scripts in the header all necessairy src's to run bootstrap and apex charts)
 
    