This article explain how to download json array using jquery. Simply create the dummy json and using jquery download the txt file. The JSON string is converted into a BLOB object which is later downloaded as text file using jQuery
Download Json array as File using Jquery
read more