How would I convert a JS table to a Lua table?


I want to convert a Node JS table to a lua table. I’m sending and receiving signals through servers, where I’m passing this as an argument… (from server to roblox)

        ['Apples', 'Oranges'],
        ['Broccoli', 'Salad']

How would I convert this to a lua table?

A “JS table” is encoded as JSON (JavaScript Object Notation).

So you can just pass the json string (from javascript land) to HttpService | Roblox Creator Documentation and get a lua table out

1 Like

Thanks, let me try that and let you know.