Implementation Guidance: File Suffixes for JSON-LD Data Exports #149
mrgarth
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Implementation Guidance: File Suffixes for JSON-LD Data Exports
For files adhering to the Common Impact Data Standard, which utilizes JSON-LD, both
.jsonldand.jsonsuffixes are technically valid, as JSON-LD is structurally compatible with and a superset of standard JSON, with the official W3C media type beingapplication/ld+json. When implementing parsers and processors, developers must ensure the software accepts files with either the recommended.jsonldextension or the widely compatible.jsonextension. However, for exported files, we recommend using the.jsonsuffix as the standard default to maximize interoperability with generic JSON tooling and environments that may not explicitly recognize or support the less common.jsonldidentifier.For maximum compatibility and ease of integration, here is our guidance on handling file extensions for Common Impact Data Standard files:
.jsonldand.jsonsuffixes. Both are technically valid for JSON-LD content..jsonsuffix. This aligns with general ecosystem expectations and ensures the widest compatibility with existing JSON tooling, editors, and environments.application/ld+json, which is a more robust content identifier than the filename suffix.Beta Was this translation helpful? Give feedback.
All reactions