Artturi
Artturi

Reputation: 63

What's the term of data structure where field is missing if no value?

My data looks like this:

[
    {"name":"Jimmy H.","title":"Mr."},  
    {"name": "Janice H."}
]

So, if field does not have value, then also the field name is missing. What's the proper term for that?

EDIT: Basically I'm looking for a term that differentiates structure above from structure where every field name (even without value) is guaranteed to exist in every record.

Upvotes: 1

Views: 44

Answers (1)

skypjack
skypjack

Reputation: 50550

The one in the example is a combination of well known structures, it seems indeed an array of maps. At least, in JavaScript it would be an array of objects, but those objects behave like maps the way they are used in the example.

Upvotes: 1

Related Questions