Utils.loadJsonFile()

   
Type function
Library wattageTileEngine.Utils.*
Return value Table
Keywords  
See also  

Overview

This function loads contents of a JSON file into a table.

Syntax

Utils.loadJsonFile( fileName )
fileName (required)

String. The name of the file to load the table from.

Examples

local TileEngine = require 'plugin.wattageTileEngine'
local Utils = TileEngine.Utils

local loadedTable = Utils.loadJsonFile("json.dat")