json.const
An alias for core.constant that exists to support the JSON Schema const keyword. If a stream does not have atype, but does include the const attribute,json.const will be inferred.
Attributes
constrequiredThe JSON value to be emitted.
Examples
Consider this stream definition, which is also valid JSON Schema:
{
"const": 41
}It is inferred to be:
{
"type": "json.const",
"const": 41
}Which is an alias for:
{
"type": "core.constant",
"value": 41
}