Skip to content

Instantly share code, notes, and snippets.

@justin2004
Last active April 18, 2023 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justin2004/71acf9d961003764b092e8779361b540 to your computer and use it in GitHub Desktop.
Save justin2004/71acf9d961003764b092e8779361b540 to your computer and use it in GitHub Desktop.
it is not safe to interpret jsonld as vanilla json in all cases
the 2 files below are equivalent when interpreted as jsonld but they are not equivalent vanilla json files.
{
"@context": "http://schema.org/",
"type": "Person",
"name": "Jane Doe"
}
{
"@context": "http://schema.org/",
"@type": [
"http://schema.org/Person"
],
"http://schema.org/name": [
{
"@value": "Jane Doe"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment