add to_json method to archive and correct docs