json-ld.org icon indicating copy to clipboard operation
json-ld.org copied to clipboard

Issue while compacting the list of single item in framing algorithm

Open anushasivaraman opened this issue 6 years ago • 2 comments

Issue while compacting the list of single item in framing algorithm : i am trying to pass single element in the list and passing to through framing alogorithm the return type which json ld form is in the form of object type of json and not in the array type of json

anushasivaraman avatar Jan 22 '19 06:01 anushasivaraman

Please provide an example. Issues should be filed at github,com/w3c/json-ld-api, -syntax, or -framing depending on the nature of the issue.

gkellogg avatar Jan 22 '19 06:01 gkellogg

list am passing with single element in json : JsonLdProcessor.frame(json, getFrame(), js);

it returns li in object type "li" :{ "type" : "xsd:integer", "@value" : "2" }

if that list contains two elements then it returns array type: "li" : [ { "type" : "xsd:integer", "@value" : "2" }, "AA"]

anushasivaraman avatar Jan 22 '19 06:01 anushasivaraman