I'm storing numbers in a table like this:
local table = {231, 5353, 2867}
I'd like to know if there's a possible way to index those values like this:
table[5353]
I thought about changing the table format to {[231] = true} however that method won't work with JSONEncode. If anyone knows a possible solution, please let me know.
Also, i'm trying to avoid having to loop through the table just to make things easier.

2 comments
Is there any possible way to check if there's a value in the table without looping?
you could check for specific slots in the table, although it is not suggested