I'm interested in converting my existing bibtex file (generated from Mendeley) into BibJSON format (http://okfnlabs.org/bibjson/), since it would be helpful for me for sharing and other integration purposes. Do you know of any code or script that can take in an existing BibTeX file (*.bib) and create the file in BibJSON format.
3 Answers
You can use pandoc-citeproc
, which is a part of the excellent pandoc
program, to convert your .bib file to a .json file.
pandoc-citeproc --bib2json foo.bib > foo.json
But I doubt the output will be exactly what you need, because the specs you have linked seem to go beyond what pandoc
offers.
UPDATE 2021: Citeproc is now integrated with Pandoc. Use something like: pandoc foo.bib -t csljson -o foo.json
-
Citeproc is now integrated with Pandoc. Use something like:
pandoc biblio.bib -t csljson -o biblio.json
Jul 4, 2021 at 3:35
If you are familiar with Ruby, you can try bibtex-ruby module. It has conversions to XML and JSON (to_json
). Thugh I don't know how close the output is to BibJSON format.
On the project site of BibJSON: http://openbiblio.net/ they refer to https://github.com/zotero/translators which is a
free, easy-to-use tool to help you collect, organize, cite, and share your research sources.
But the Merge-Request for BibJSON into Zotero got lost. So it does not support export into BibJSON. Maybe CSL Json is a more popular format?