Technology Quote by Eric Freeman
““Note that the JSON format doesn’t work with methods (so you can’t include, say, a bark method in your JSON string), but it does work with all the primitive types, as well as objects and arrays.””
About This Quote
Source Book: Head First Design Patterns, 2004
The quote explains that JSON is limited to data representation and cannot include functions, but it supports all basic data types and structures.
In simple terms: JSON holds data, not behavior.
Use JSON for data exchange, not code.
Themes
Mood
Type
When to use this quote
- API design
- configuration files
- data storage
Key Concepts
Questions to Reflect On
- When might you need a format that includes methods?
- How do you handle behavior in JSON‑based systems?
JSON cannot execute logic, limiting dynamic behavior.