datafoodconsortium / taxonomies

Set of taxonomies to use with the ontology like product types, units and facets.
GNU Affero General Public License v3.0
2 stars 1 forks source link

VocBench export JSON-LD file contains an array instead of an object #23

Open lecoqlibre opened 10 months ago

lecoqlibre commented 10 months ago

VocBench JSON-LD file export contains:

[
  {
    "@graph": []
  }
]

But should ideally be:

{
  "@graph": []
}

Some libraries don't support parsing arrays of graph(s) like seen in this issue: https://github.com/datafoodconsortium/connector-php/issues/1.

As this is a valid JSON-LD file, I assume it's up to the library to support that.