What is MIME type "application/vnd.citationstyles.csl+json"?

A MIME type is a string that tells browsers and other tools how to handle a particular kind of file.

application/vnd.citationstyles.csl+json defines a data format for citation style information in a JSON structure.
It stores bibliographic data used by citation tools and reference managers. The format is known as CSL-JSON.
Files using this MIME type usually have the extension JSON.
They contain structured citation data that software can interpret and apply consistently.
For further details, see CitationStyles.org.

Associated file extensions

Usage Examples

HTTP Header

When serving content with this MIME type, set the Content-Type header:


    Content-Type: application/vnd.citationstyles.csl+json    
  

HTML

In HTML, you can specify the MIME type in various elements:


    <a href="file.dat" type="application/vnd.citationstyles.csl+json">Download file</a>    
  

Server-side (Node.js)

Setting the Content-Type header in Node.js:


    const http = require('http');    
    
    http.createServer((req, res) => {    
      res.setHeader('Content-Type', 'application/vnd.citationstyles.csl+json');    
      res.end('Content here');    
    }).listen(3000);    
  

Associated file extensions

FAQs

What is the primary use of application/vnd.citationstyles.csl+json?

This MIME type represents CSL-JSON, a standard format for storing bibliographic citation data. It allows citation processors like CiteProc and reference managers to exchange and format references consistently using JavaScript Object Notation.

Which software supports CSL-JSON files?

Popular reference management tools such as Zotero, Mendeley, and document converters like Pandoc utilize this format. It is widely used in academic publishing workflows to ensure citations are rendered correctly across different platforms.

How do I configure Apache to serve CSL-JSON correctly?

To serve files with this specific MIME type, add the following directive to your .htaccess file or server configuration: AddType application/vnd.citationstyles.csl+json .json. This ensures browsers and API clients recognize the data as citation-specific rather than generic JSON.

How does this MIME type differ from standard application/json?

While the file structure is identical to standard JSON, application/vnd.citationstyles.csl+json indicates that the content adheres to the Citation Style Language schema. This specificity helps applications automatically trigger the correct citation parsing logic instead of treating it as generic data.

Can I edit these files with a text editor?

Yes, because they are plain text files using the .json format, you can edit them in any text editor like Notepad++ or VS Code. However, using a dedicated tool like a CSL editor is recommended to maintain valid schema structure.

How do I map this MIME type in Nginx?

In your Nginx mime.types file or server block, you can map the file extension by adding: application/vnd.citationstyles.csl+json json;. Note that this might conflict if you want all .json files to be generic, so specific location blocks are often preferred.

Is CSL-JSON safer than other bibliographic formats?

It shares the same security profile as standard JSON. Developers parsing this data should use secure JSON parsers to prevent injection attacks, but unlike some binary formats, it does not execute code itself.

General FAQ

What is a MIME type?

A MIME (Multipurpose Internet Mail Extensions) type is a standard that indicates the nature and format of a document, file, or assortment of bytes. MIME types are defined and standardized in IETF's RFC 6838.

MIME types are important because they help browsers and servers understand how to process a file. When a browser receives a file from a server, it uses the MIME type to determine how to display or handle the content, whether it's an image to display, a PDF to open in a viewer, or a video to play.

MIME types consist of a type and a subtype, separated by a slash (e.g., text/html, image/jpeg, application/pdf). Some MIME types also include optional parameters.

How do I find the MIME type for a file?

You can check the file extension or use a file identification tool such as file --mime-type on the command line. Many programming languages also provide libraries to detect MIME types.

Why are multiple MIME types listed for one extension?

Different applications and historical conventions may use alternative MIME identifiers for the same kind of file. Showing them all helps ensure compatibility across systems.