[Tex/LaTex] Convert existing BibTeX to BibJSON

bibtex

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.

Best Answer

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

Related Question