npm install -g leveldb-json
To dump the contents of an existing leveldb instance execute
leveldb-dump-to-json --file /path/to/json/file --db /path/to/leveldb
To load the contents of previous json dump into a leveldb instance execute
leveldb-load-from-json --file /path/to/json/file --db /path/to/leveldb