ported archiver to json