Skip to content

Commit c0952c3

Browse files
committed
Define use of null in JSON-LD
This closes #76.
1 parent fa8a035 commit c0952c3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/latest/json-ld-syntax/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,10 @@ <h2>How to Read this Document</h2>
384384
Values that are used to express one of two possible boolean states.
385385
</dd>
386386
<dt><tdef>null</tdef></dt><dd>
387-
The use of the <em>null</em> value is undefined within JSON-LD.
387+
Unless otherwise specified, a JSON-LD processor MUST act as if a key-value pair in the body of a JSON-LD document was never declared when the value equals <em>null</em>.
388+
If <code>@value</code> or <code>@list</code> is set to <em>null</em> in expanded form, then the entire JSON object is ignored.
389+
If <code>@context</code> is set to <em>null</em>, the <tref>active context</tref> is reset and when used
390+
within a <tref>context</tref>, it removes any definition associated with the key, unless otherwise specified.
388391
</dd>
389392
</dl>
390393
</p>

0 commit comments

Comments
 (0)