Dot Notation Access
Dot notation is the most common way to access properties in JSON objects. It's clean, readable, and works great for known property names.
Basic Dot Notation
Chaining Dot Notation
Chain multiple dots to access deeply nested data:
Accessing Arrays with Dot Notation
Combine dot notation with array indices:
When Dot Notation Fails
Dot notation doesn't work when:
- Property name has spaces or special characters
- Property name starts with a number
- Property name is a reserved word
- Property name is stored in a variable
Exercise: Navigate Structure
Exercise: Array in Object
Key Points
- Dot notation:
object.property - Chain for nested access:
obj.a.b.c - Combine with arrays:
obj.arr[0].prop - Use bracket notation for special property names
- Keep property names simple for dot notation

