download json file from javascript code example Example: download .json file { "fruit": "Apple", "size": "Large", "color": "Red" }