Can you help me find a term for basic objects that accentuates their simplicity? Particularly, objects that do not reference themselves and do not have any methods or bindings (i.e. JSON-serializable).
The terms I am currently using are:
- "flat object"
- "simple object"
- "data container object"
- "JSON-serializable object"
I am not satisfied with them because:
- Suggests a lack of hierarchy, which is actually acceptable.
- Seems unclear.
- Also appears vague.
- Doesn't directly address complexity, but focuses more on requirements. While the ability to be JSON-serializable is sometimes a requirement, simplicity usually takes precedence.
Examples of objects I want to describe:
var good_1 = {};
var good_2 = {a: 1, b: 'str'}
var good_3 = {thing: [1,
{a: 1,
b: 'str'},
'word'],
otherThing: 42};
Examples of objects I want to distinguish from:
var bad_1 = {thing: 3,
getThing: function () { return this.thing; }};
var bad_2 = {a: 1};
bad_2['self'] = bad_2;
Inquiry
What should I name objects that do not reference themselves, contain no methods, bindings, etc (i.e. JSON-serializable)?