Jump to content

Sql


Recommended Posts

Alright,

local informative_table = { foo = "bar", green = { 0, 255, 0 }, table_name = "informative_table" } 
local JSON_structure    = toJSON ( informative_table ) 
  
--[[ 
    JSON_structure is a variable that contains a string containing a copy of 'informative_table', 
    whenever we need this table, we can produce it using fromJSON ( JSON_structure ), e.g: 
    local informative_table_2 = fromJSON ( JSON_structure ) 
    and here we have another copy of 'informative_table' 
--]] 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...