JSON Files

(BDB Replacement)

JSON files replace the much despised BDB database mechanism for storing metadata in EMAN2. These files offer a number of advantages over BDB, but there are also a few tradeoffs.

Advantages:

Tradeoffs:

Basic usage

Usage is quite similar from python (intentionally) to BDB. The basic methods for accessing JSON files:

The main object is the JSDict class. An instance of this class represents a single file on disk with a '.js' extension.