Export Basic Rule

Just a quick question, if anybody knows.

When does an export of a basic rule generate a .txt file, and when does an export genberate a .json file?
I recently exported some basic rules (and downloaded them) only to find that some were of one type and some of the other type.

I think that downloading single rule to a file will generate a .json and downloading multiple rules to a file will generate a .txt.