JSON export mode

There's no import yet though. And it's uncompressed as heck.