working JSON export now