diff --git a/lib/rdf/model/literal/datatypes/json.ex b/lib/rdf/model/literal/datatypes/json.ex index 8c1678d..b3380d5 100644 --- a/lib/rdf/model/literal/datatypes/json.ex +++ b/lib/rdf/model/literal/datatypes/json.ex @@ -5,16 +5,6 @@ defmodule RDF.JSON do As specified in RDF 1.2, this datatype allows JSON content as literal values. The lexical forms must conform to [RFC 7493 (I-JSON)](https://www.rfc-editor.org/rfc/rfc7493). - ## Examples - - iex> RDF.JSON.new(%{foo: 42}) - - iex> RDF.JSON.new(~s({"foo": 42})) - - iex> RDF.JSON.new("not JSON") |> RDF.JSON.valid?() - false - - See: """ @@ -53,6 +43,13 @@ defmodule RDF.JSON do ## Examples + iex> RDF.JSON.new(%{foo: 42}) + + iex> RDF.JSON.new(~s({"foo": 42})) + + iex> RDF.JSON.new("not JSON") |> RDF.JSON.valid?() + false + iex> RDF.JSON.new("null") |> RDF.JSON.value() nil