So, if I have a JSON value like:
local whatever = {
local something = nil;
};
Then how would you get "something" inside "whatever"?
So, if I have a JSON value like:
local whatever = {
local something = nil;
};
Then how would you get "something" inside "whatever"?
Iterate through the table.
local whatever = {
something = "Hello!",
nothing = "Nothing here!"
}
for i, v in pairs(whatever) do --iterate through the table
print(v)
end
This discussion is preserved as it was. New answers, comments, and votes are closed.
3 comments
How would you get one value and not all the values?
You can access the 'something' like this: print(whatever.something)
Thanks!