What specific section or headline is this issue about?
access of members of the json stucture
What information was incorrect, unhelpful, or incomplete?
Ofcourse hero["members"] is proper syntax but so is hero.members. The later much preferred as it uses object member access which is better readable and better documentable.
Suggest to update all the example access codes.
What did you expect to see?
use of object.member access syntax in stead of object["member"] syntax. It blur the border between arrays and objects confusing an apprentice.
Do you have any supporting links, references, or citations?
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON
What specific section or headline is this issue about?
access of members of the json stucture
What information was incorrect, unhelpful, or incomplete?
Ofcourse hero["members"] is proper syntax but so is hero.members. The later much preferred as it uses object member access which is better readable and better documentable. Suggest to update all the example access codes.
What did you expect to see?
use of object.member access syntax in stead of object["member"] syntax. It blur the border between arrays and objects confusing an apprentice.
Do you have any supporting links, references, or citations?
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects
Do you have anything more you want to share?
No response
MDN metadata
Page report details
* Folder: `en-us/learn/javascript/objects/json` * MDN URL: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/learn/javascript/objects/json/index.md * Last commit: https://github.com/mdn/content/commit/d71da812ee94c20658cb1916a123a42254ea545c * Document last modified: 2024-08-07T22:02:28.000Z