#json Page 1 of 1 (4 posts) — ArchiveFeed

Old and New Testaments in JSON

Scriptures in JSON

The JSON versions of the Old and New Testaments are now available.

Also, I’ve compared all five standard works against the text on LDS.org and have fixed dozens of typos, a list of which you can see in the README changelog. (I had mistakenly assumed that my source text had been corrected, but that doesn’t seem to be the case.) None of the typos were doctrinal in nature — they’re all minor typographical fixes — but I recommend updating nonetheless.

Updated scriptures in JSON

There are now two new editions of the scriptures in JSON: flat and reference.

The flat edition is a flattened list of verses which makes it easier to iterate through the text for textual analysis and similar applications.

The reference edition structures the text so that it’s easily accessible via key: data['1 Nephi']['3']['7'], for example. (Thanks to Jon Faulkenberry for the recommendation.)

In the repo there are also the two Python scripts that I used to generate the new editions from the base edition.

Old and New Testaments are still forthcoming.

More scriptures in JSON

Scriptures in JSON

The JSON versions of the Doctrine & Covenants and the Pearl of Great Price are now available.

With the D&C, I opted to use section instead of chapter, which does mean a little inconsistency for scripts that use these JSON files, but it seemed better to be consistent with the source material.

With the Book of Abraham facsimiles in the Pearl of Great Price, I’m using the URLs to the images on LDS.org. (I don’t think I want to try to embed the images themselves.)

Old and New Testaments forthcoming.

Book of Mormon in JSON

Scriptures in JSON

I’ve released a JSON version of the Book of Mormon. Also available on GitHub.

Note: there’s an existing JSON version at the Mormon Documentation Project, but it has some unnecessary content (database IDs, duplicate info, etc.) and isn’t structured hierarchically. I did however use the MDP SQLite file to extract the text for this, then added additional content (title page, the book/chapter headings that were in the original text, testimonies) and made the changes from the 2013 edition.

Anyway, enjoy. I plan to do the same thing with the other volumes in the standard works. I’m also planning an expanded version of the Book of Mormon with extra metadata (people and places mentioned in each verse, author of the verse, etc.).