Phaser API Documentation

  Version: 
saveJSON(data, [filename])

Description:

Converts the given JSON data into a file that the browser then prompts you to download so you can save it locally.

The data must be well formed JSON and ready-parsed, not a JavaScript object.

Parameters:

name type arguments Default description
data *

The JSON data, ready parsed.

filename string <optional> file.json

The name to save the JSON file as.

Returns:
Description:

This Loader plugin.

Since: 3.0.0