nanos world API Reference Unofficial documentation
Function Shared Fast

File:ReadJSONAsync

Reads the whole file as a JSON and returns it asynchronously.

Syntax

Lua
my_file:ReadJSONAsync(callback)

Parameters

Name Type Default Description
callback function Callback with the file read
Callback signature function(file_content)
  • file_content table File content in table format