Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load JSON-LD in the same way as JSON #3502

Closed
wants to merge 1 commit into from

Commits on Oct 27, 2015

  1. module: load JSON-LD with standard extension

    The JSON-LD standard (http://www.w3.org/TR/json-ld/) requires sending
    what is effectively JSON content using a different MIME type. Because
    of that, it is usually required to use a file extension other than
    .json since that is what is typically used in MIME type mapping in
    HTTP servers. The IANA-registered file extension is .jsonld
    (http://www.iana.org/assignments/media-types/application/ld+json).
    
    This patch makes .jsonld documents loadable through require() in the
    exact same manner that .json files are.
    darobin committed Oct 27, 2015
    Configuration menu
    Copy the full SHA
    3dd7e46 View commit details
    Browse the repository at this point in the history