Fix c++ code - create lua table from map

Job ID: 35266827

Budget: $10 – $30 USD

Hello

I want to create a lua table from a map with this structure:
map = {
[id] = {},
[id] = {},
}

i have uploaded the code that what i tried from now, but its getting error.