JSON Resource Descriptor, originally introduced in RFC 6415 and based on the Extensible Resource Descriptor (XRD) format, is a JSON Object that comprises the following name/value pairs:
When processing a JSON Resource Descriptor, the client MUST ignore any unknown member and not treat the presence of an unknown member as an error.
The "links" array has any number of member objects, each of which represents a Link Relation Type. Each of these link objects can have the following members:
The "rel" and "href" members are strings representing the Link Relation Type and the target URI, respectively. The context of the link is the "subject".
The "type" member is a string indicating what the media type of the result of dereferencing the link ought to be.
The order of elements in the "links" array MAY be interpreted as indicating an order of preference. Thus, if there are two or more link relations having the same "rel" value, the first link relation would indicate the user's preferred link.
The "links" array is OPTIONAL in the JSON Resource Descriptor.