I am looking for a term for simple objects that emphasizes their simplicity. In particular, objects that do not have self-reference and do not contain methods, bindings, etc. (T.E. JSON-serializable).
Now I use words like:
- flat object
- "simple object"
- "data container object
- "JSON serializable object"
I do not like them because:
- This implies the absence of a hierarchy, which is actually beautiful.
- Seems vague.
- Also seems vague.
- Not a direct reference to complexity, more emphasis on requirements. It is not often that JSON serializability is actually a requirement, but simplicity.
Examples of objects that I am going 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 that 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;
Question
, , , .. (.. JSON-)?