nice to see you’re working full steam on your project
To your question, your code would be correct but the thing is, you can’t access an element inside a Component from the outside. This is because Components describe the structure of elements that will be created in the future and do not exist yet.
So to access properties of elements created from Components with EntityManager, you need to access them via entityManager.getEntityById().
Your code could look like this:
//find entity with ID == 1 var entity = entityManager.getEntityById(1); //access entity property var numOfRow = jsonObj.length / entity.numOfCol;
Hope this helps!