Name Specification Property
Name
http://lynx-json.org/name
Meaning
The name
property of a specification identifies the property value or array item value that the specification describes.
Format Rules
- If the specification describes a property of an object value or an item in an array value, then
name
is REQUIRED. - If the
name
property refers to a property of an object value, then its value MUST be the name of the property. The referenced property MAY be undefined. - If the
name
property refers to an item in an array value, then its value MUST be the index of the item in the array value.
Example
Defined Property
{
"actor": "Chevy Chase",
"spec": {
"hints": [ "container" ],
"children": [
{
"name": "actor",
"hints": [ "text" ]
}
]
}
}
Undefined Property
{
"spec": {
"hints": [ "container" ],
"children": [
{
"name": "actor",
"hints": [ "text" ]
}
]
}
}
Array Item
{
"value": [
"Chevy Chase"
],
"spec": {
"hints": [ "container" ],
"children": [
{
"name": "0",
"hints": [ "text" ]
}
]
}
}
Authoring Rules
None
Authoring Considerations
None
User Agent Rules
None
User Agent Considerations
None