-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Running following commands:
echo '{"_:a":"b"}' > input.json
echo '{}' > context.json
jsonld compact -c context.json input.json
gives following result:
[
{
"@context": "context.json",
"_:a": "b"
},
{
"@base": {
"fragment": null,
"query": null,
"file": "input.json",
"directory": "/Users/ksuszka/repos/experiments/tutorial/",
"path": "/Users/ksuszka/repos/experiments/tutorial/input.json",
"port": null,
"hostname": "",
"password": null,
"user": null,
"auth": null,
"authority": "",
"scheme": "file",
"protocol": "file:",
"href": "file:///Users/ksuszka/repos/experiments/tutorial/input.json",
"normalizedPath": "/Users/ksuszka/repos/experiments/tutorial/input.json"
},
"mappings": {},
"inverse": {},
"fastCurieMap": {}
}
]
I would expect to have this instead:
{
"_:a": "b"
}
as it is generated on official json-ld playground: http://tinyurl.com/jdrltwu
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels