Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the context of a resource object, a property is a synonym, or shorthand expression, for a JSON name/value pair.

Digging Deeper

Properties are used to enumerate one or more identifying pieces of information related to the same resource object. Consider Consider the following resource object:

...

In the above example, we see an "address name/value pair, which . It is perfectly acceptable , For instance, in the above example, rather than refer to the "the name nameto use "name/value pair" it would be easier to refer to "the name property". The term property also since this is how JSON is documented, but the term property is preferred in the context of web APIs a resource objects. The term property defines resource object relationships better, which is evident with nested properties and sub-properties. Therefore we would observe that the above resource object has an address property.