Skip to content

Use of null value with JSON literals #258

@azaroth42

Description

@azaroth42

Typically the null value removes the property or resets a context. However JSON literals capture any legal JSON value, which includes null.

Thus there is ambiguity currently as to the expected result of a property with a JSON literal typed value where the @value is null. Current implementations are inconsistent between compact and expanded form, and thus there is missing text in the algorithm to preserve null when the type is @json.

{
  "@context": {
    "@version": 1.1,
    "property": {"@id": "rdfs:label", "@type": "@json"}
  },
  "property": null
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions