Implemented JSON export version 0.2. #48