Large nested table causes crash

Roblox servers seem to crash when using the pairs function to iterate a large nested table.

Running the following code in the Console command bar crashes the server:

local json = '[[[[10,-14],[-14,-14],[[1003,15],[194,15]],[[216,[230,-31,1],[[1,16]],0,0],[217,[200,-31,1],[[1,16]],0,0]],0],[[10,-14],[10,0],[[194,15],[1003,15]],[[215,[-70,-31,1],[[1,16],[335,16],[194,12]],0,[0,0]],[299,[-91,-9,0],[[1001,0],[1003,12]],0,[1]],[299,[-52,-10,0],[[1001,0],[1003,12]],0,[1]],[82,[-32,-25,0],[[194,0]],0,[1459109040]]],0],[[10,0],[-14,0],[[194,15],[1003,15]],[[562,[-167,-16,1],[[311,0]],0,0]],0],[[-14,0],[-14,-14],[[194,15],[1003,15]],0,0],[[-14,-14],[-14,0],[[199,15],[194,15]],0,1],[[-14,0],[10,0],[[199,15],[194,15]],0,1],[[10,0],[10,-14],[[199,15],[194,15]],0,1],[[10,-14],[-14,-14],[[199,15],[194,15]],[[717,[170,-24,1],[[302,12],[311,0]],0,0],[716,[190,-24,1],[[302,12],[311,0]],0,0],[718,[150,-24,1],[[302,12],[311,0]],0,0],[723,[120,-24,1],[[302,12],[311,0]],0,0],[724,[90,-24,1],[[302,12],[311,0]],0,0],[725,[40,-24,1],[[302,12],[311,0]],0,0]],1],[[-14,-4],[-14,0],[[1003,15],[194,15]],[[258,[20,-24,1],[[1,15],[1024,0]],[[426,0,[[348,12],[1002,12]],[1]]],0],[258,[-20,-24,1],[[1,15],[1024,0]],[[426,0,[[348,12],[1002,12]],[1]]],0]],2],[[-10,0],[10,0],[[1003,15],[194,15]],[[258,[180,-24,1],[[1,15],[1024,0]],0,0],[258,[140,-24,1],[[1,15],[1024,0]],0,0],[258,[100,-24,1],[[1,15],[1024,0]],0,0],[258,[60,-24,1],[[1,15],[1024,0]],0,0],[258,[20,-24,1],[[1,15],[1024,0]],0,0],[258,[-20,-24,1],[[1,15],[1024,0]],0,0],[258,[-60,-24,1],[[1,15],[1024,0]],0,0],[258,[-100,-24,1],[[1,15],[1024,0]],0,0],[258,[-140,-24,1],[[1,15],[1024,0]],0,0],[258,[-180,-24,1],[[1,15],[1024,0]],0,0]],2],[[10,0],[10,-14],[[1003,15],[194,15]],[[258,[120,-24,1],[[1,15],[1024,0]],0,0],[258,[80,-24,1],[[1,15],[1024,0]],0,0],[258,[40,-24,1],[[1,15],[1024,0]],0,0],[258,[0,-24,1],[[1,15],[1024,0]],0,0],[258,[-40,-24,1],[[1,15],[1024,0]],0,0],[258,[-120,-24,1],[[1,15],[1024,0]],0,0],[258,[-80,-24,0],[[1,15],[1024,0]],0,0]],2],[[10,-14],[-14,-14],[[1003,15],[194,15]],[[258,[220,-24,1],[[1,15],[1024,0]],0,0],[258,[180,-24,1],[[1,15],[1024,0]],0,0],[258,[140,-24,1],[[1,15],[1024,0]],0,0],[258,[100,-24,1],[[1,15],[1024,0]],0,0],[258,[60,-24,1],[[1,15],[1024,0]],0,0],[258,[20,-24,1],[[1,15],[1024,0]],0,0],[258,[-20,-24,1],[[1,15],[1024,0]],0,0],[258,[-60,-24,1],[[1,15],[1024,0]],0,0],[258,[-100,-24,1],[[1,15],[1024,0]],0,0],[258,[-140,-24,1],[[1,15],[1024,0]],0,0],[258,[-180,-24,1],[[1,15],[1024,0]],0,0],[258,[-220,-24,1],[[1,15],[1024,0]],0,0]],2],[[-10,0],[-10,-4],[[194,3],[194,3]],[[125,[-20,-39,0],[[1001,16],[199,12]],0,0],[169,[-30,-40,0],[[217,19]],0,0]],2],[[-10,-4],[-14,-4],[[194,3],[194,3]],[[215,[-20,-31,1],[[1,16],[335,16],[194,12]],0,[0,0]],[300,[0,-31,1],[[1002,16]],0,0],[233,[28,-15,1],[[208,16]],0,0],[233,[10,-22,1],[[208,16]],0,0]],2],[[-14,0],[-10,0],[[1003,15],[194,15]],[[258,[20,-24,1],[[1,15],[1024,0]],[[426,0,[[348,12],[1002,12]],[1]]],0],[258,[-20,-24,1],[[1,15],[1024,0]],[[426,0,[[348,12],[1002,12]],[1]]],0]],2],[[-14,-14],[-14,-4],[[1003,15],[194,15]],[[258,[80,-24,1],[[1,15],[1024,0]],0,0],[258,[40,-24,1],[[1,15],[1024,0]],0,0],[258,[0,-24,1],[[1,15],[1024,0]],0,0],[258,[-40,-24,1],[[1,15],[1024,0]],0,0],[258,[-80,-24,1],[[1,15],[1024,0]],0,0]],2],[[4,-7],[4,-8],[[194,3],[194,15]],0,2],[[4,-8],[-7,-8],[[194,3],[194,15]],[[87,[0,-20,1],[[1,16]],0,0],[80,[74,-21,1],[[208,19],[194,0]],0,[256575947]],[80,[-73,-22,1],[[208,19],[194,0]],0,[256575947]],[135,[30,-25,1],[[208,16]],0,0],[135,[-31,-14,1],[[208,16]],0,0]],2],[[-7,-8],[-7,-7],[[194,3],[194,15]],0,2],[[0,-7],[4,-7],[[194,3],[194,15]],[[80,[-8,-22,1],[[208,19],[194,0]],0,[256575947]]],2],[[-7,-7],[-2,-7],[[194,3],[194,15]],[[80,[4,-21,1],[[208,19],[194,0]],0,[256575947]]],2],[[-2,-5],[-2,-7],[[194,3],[194,3]],[[410,[1,-24,1],[[1,15]],[[430,0,[[329,17],[194,12]],0]],0]],2],[[-2,-5],[0,-5],[[194,3],[194,3]],[[410,[0,-24,1],[[1,15]],[[430,1,[[329,17],[194,12]],0]],0]],2],[[-2,-7],[0,-7],[[194,3],[194,15]],[[365,[9,-6,1],[[11,0],[1016,0],[26,0]],0,[1]],[365,[-11,-6,1],[[11,0],[1016,0],[26,0]],0,[1]],[365,[9,-16,1],[[11,0],[1016,0],[26,0]],0,[1]],[365,[-11,-16,1],[[11,0],[1016,0],[26,0]],0,[1]],[365,[9,-29,1],[[11,0],[1016,0],[26,0]],0,[1]],[365,[-11,-29,1],[[11,0],[1016,0],[26,0]],0,[1]]],2],[[0,-5],[0,-7],[[194,3],[194,3]],[[410,[0,-24,1],[[1,15]],[[430,1,[[329,17],[194,12]],0]],0]],2],[[-7,-22],[-10,-22],[[194,15],[194,15]],[[716,[1,-24,1],[[302,12],[311,0]],0,0],[716,[-17,-24,1],[[302,12],[311,0]],0,0],[716,[19,-24,1],[[302,12],[311,0]],0,0]],0],[[-10,-22],[-11,-21],[[194,15],[1020,15]],0,0],[[-11,-21],[-12,-17],[[194,15],[194,15]],[[720,[0,-30,0],[[322,15],[329,0],[1025,27],[1008,31]],0,0]],0],[[-12,-21],[-12,-22],[[194,15],[194,15]],[[219,[0,-31,0],[[192,19]],0,0]],0],[[-12,-22],[-13,-22],[[194,15],[194,15]],[[215,[0,-31,1],[[1,16],[335,16],[194,12]],0,[0,0]]],0],[[-13,-22],[-13,-21],[[194,15],[194,15]],[[219,[0,-31,1],[[192,19]],0,0]],0],[[-7,-22],[-10,-22],[[194,15],[194,15]],[[716,[19,-24,1],[[302,12],[311,0]],0,0],[716,[1,-24,1],[[302,12],[311,0]],0,0],[716,[-17,-24,1],[[302,12],[311,0]],0,0]],1],[[-10,-22],[-11,-21],[[194,15],[194,15]],0,1]],[],[[422,[15,-25],[15,-4],[[194,15]],0],[422,[15,-4],[13,-2],[[194,15]],0],[422,[13,-2],[10,-2],[[194,15]],0],[422,[10,-14],[10,-25],[[194,15]],0]],[],[[[[-14,-8],[-13,-8],[-13,-12],[-14,-12]],[[194,15],[194,15]],1],[[[-14,-12],[-13,-12],[-13,-14],[-14,-14]],[[194,36],[194,15]],2],[[[-14,-10],[-13,-10],[-13,-9],[-14,-9]],[[194,36],[194,15]],2],[[[-14,-9],[-14,0],[10,0],[10,-14],[-13,-14],[-13,-12],[-13,-10],[-13,-9]],[[194,36],[194,15]],2],[[[10,-2],[13,-2],[14,-3],[15,-4],[15,-25],[10,-25]],[[194,18]],0],[[[-7,-22],[-10,-22],[-11,-21],[-12,-17]],[[194,15],[194,15]],1],[[[-7,-22],[-7,-20],[-12,-17],[-11,-21],[-10,-22]],[[1004,15]],0]],[[515,[[-14,-14],[10,-14],[10,0],[-14,0]],[[1003,15],[1003,12],[194,15]],2]],[[700,[470,482,-682,40],[[199,16],[320,12],[320,16]],0,0],[618,[425,482,-682,40],[[199,16],[320,12],[320,16]],0,0],[188,[375,482,-682,40],[[1002,12],[194,12],[26,0]],0,0],[618,[325,482,-682,40],[[199,16],[320,12],[320,16]],[[694,[-10,61,8,36],[[194,0]],0,0],[692,[17,61,8,42],[[217,19],[26,15]],0,0],[691,[7,61,10,39],[[217,19],[352,19]],0,0]],0],[618,[275,482,-650,50],[[199,16],[320,12],[320,16]],[[149,[0,59,0,50],[[1002,12],[194,12]],0,0],[695,[30,61,-2,50],[[217,19],[194,16]],0,0],[170,[-37,61,5,0],[],0,0],[491,[-23,61,9,53],[[102,16],[1001,16],[226,17]],0,0],[696,[46,61,4,50],[[217,19],[26,15],[320,0]],0,0]],0],[672,[250,482,-575,60],[[199,16],[320,12],[320,16]],0,0],[672,[250,482,-525,60],[[199,16],[320,12],[320,16]],[[602,[6,61,6,64],[],0,[3]],[681,[-19,61,6,30],[],0,[3]]],0],[618,[482,482,-525,20],[[199,16],[320,12],[320,16]],[[121,[5,61,8,20],[],0,0]],0],[618,[482,482,-475,20],[[199,16],[320,12],[320,16]],[[116,[22,61,3,60],[[1,16],[194,16]],0,0],[189,[-5,61,-2,17],[[1,16],[194,16]],0,0]],0],[618,[482,482,-572,20],[[199,16],[320,12],[320,16]],[[190,[10,61,3,24],[[1003,16],[11,0]],0,0],[115,[-10,61,3,34],[[1,16],[194,16],[23,0]],0,0],[91,[-13,61,-10,16],[[1011,0]],0,0],[91,[5,61,-12,37],[[1011,0]],0,0]],0],[147,[-25,2,-1125,0],[[1001,12],[217,19],[199,12]],[[189,[0,61,0,0],[[1,16],[194,16]],0,0]],0],[147,[-75,2,-1125,0],[[1001,12],[217,19],[199,12]],[[116,[-12,61,0,50],[[1,16],[194,16]],0,0],[704,[13,61,0,10],[[1007,12],[26,16],[311,0]],0,0]],0],[700,[-125,2,-1125,0],[[194,12],[1002,12],[1002,12]],0,0],[188,[50,2,-1162,10],[[194,12],[1002,12],[26,0]],0,0],[616,[-225,2,-1150,70],[[331,12],[21,19],[1005,12]],[[710,[0,59,0,70],[[1002,12],[1002,12],[26,0]],0,0]],0],[147,[-300,2,-1175,0],[[331,12],[21,19],[1005,12]],[[150,[0,59,0,0],[[194,12],[194,12]],0,0],[751,[50,61,0,50],[[311,12],[26,16],[26,16]],0,0]],0],[114,[125,2,-1025,10],[[199,12],[1002,16]],[[755,[18,58,-18,0],[[194,12],[26,15],[199,12]],0,0]],0],[114,[-25,2,-965,0],[[199,12],[1002,16]],0,0],[114,[-85,2,-1025,60],[[199,12],[1002,16]],0,0],[114,[-225,2,-975,0],[[199,12],[1002,16]],0,0],[711,[175,2,-1100,15],[[194,12],[1002,12],[26,0]],0,0],[632,[175,198,-1000,10],[[217,19],[194,12]],0,0],[654,[-25,237,-1000,70],[[217,19],[194,12]],0,0]],[[684,[375,717,-675,0],[[311,12],[341,0]],0,0],[712,[75,237,-975,0],[[217,19],[341,0]],0,0],[431,[-675,2,-325,40],[[194,15]],0,0],[431,[-675,242,-525,40],[[194,15]],0,0],[162,[-525,482,-53,0],[[335,15],[353,12]],0,0],[382,[-675,482,-25,0],[[335,15],[329,0],[194,12]],0,0],[182,[0,482,-17,0],[[194,15]],[[160,[-9,55,0,0],[[1001,0]],0,0],[140,[-9,2,-21,40],[[1003,0]],0,0]],0],[573,[-350,717,-550,0],[[1,0],[199,12]],0,[1]],[573,[-575,717,-350,0],[[1,0],[199,12]],0,[1]],[573,[375,717,-350,0],[[1,0],[199,12]],0,[1]],[573,[125,717,-150,0],[[1,0],[199,12]],0,[1]],[573,[-100,717,-150,0],[[1,0],[199,12]],0,[1]],[573,[-350,717,-150,0],[[1,0],[199,12]],0,[1]],[573,[-625,717,-100,0],[[1,0],[199,12]],0,[1]],[573,[400,717,-150,0],[[1,0],[199,12]],0,[1]],[573,[0,717,-550,0],[[1,0],[199,12]],0,[1]],[573,[375,717,-550,0],[[1,0],[199,12]],0,[1]],[573,[-575,717,-550,0],[[1,0],[199,12]],0,[1]],[176,[8,482,-683,0],[[1,15],[199,12]],0,[1]],[176,[-187,482,-685,0],[[1,15],[199,12]],0,[1]],[50,[-610,482,-115,0],[[1,3],[194,3]],0,0],[57,[25,482,-625,30],[[1001,16],[199,0]],0,0],[550,[-50,482,-673,40],[[1001,16],[199,16],[194,0],[199,16]],0,0],[550,[-125,482,-673,40],[[1001,16],[199,16],[194,0],[199,16]],0,0],[57,[-200,482,-625,50],[[1001,16],[199,0]],0,0],[564,[-227,482,-600,10],[[1001,16],[199,16]],[[153,[0,35,0,49],[[26,12]],0,0],[91,[10,35,10,0],[[1011,0]],0,0]],0],[564,[53,482,-598,10],[[1001,16],[199,16]],[[153,[-1,35,0,38],[[26,12]],0,0],[91,[6,35,7,0],[[1011,0]],0,0]],0],[577,[383,482,-87,0],[[1001,19],[199,12]],[[579,[-25,0,-30,40],[[1001,19],[199,12]],0,0],[579,[25,0,-30,40],[[1001,19],[199,12]],0,0],[579,[-55,0,0,60],[[1001,19],[199,12]],0,0],[579,[-25,0,30,0],[[1001,19],[199,12]],0,0],[579,[25,0,30,0],[[1001,19],[199,12]],0,0],[579,[55,0,0,20],[[1001,19],[199,12]],0,0],[697,[-3,56,-3,0],[[217,19],[348,0]],0,0]],0],[578,[215,483,-512,60],[[199,16],[320,12]],0,0],[578,[215,483,-545,60],[[199,16],[320,12]],0,0],[578,[215,483,-575,60],[[199,16],[320,12]],0,0],[578,[215,483,-607,60],[[199,16],[320,12]],0,0],[98,[-50,482,-292,40],[[208,15],[194,15],[11,0],[194,12]],0,0],[399,[-315,717,-313,0],[[335,16],[302,12]],0,[1]],[399,[-150,717,-318,0],[[335,16],[302,12]],0,[1]],[399,[78,717,-325,0],[[335,16],[302,12]],0,[1]],[399,[180,717,-322,0],[[335,16],[302,12]],0,[1]],[399,[195,717,-435,0],[[335,16],[302,12]],0,[1]],[399,[93,717,-437,0],[[335,16],[302,12]],0,[1]],[399,[-142,717,-435,0],[[335,16],[302,12]],0,[1]],[399,[-322,717,-435,0],[[335,16],[302,12]],0,[1]],[399,[-240,717,-463,0],[[335,16],[302,12]],0,[1]],[574,[-385,237,-335,0],[[1,0],[199,12]],0,[1]],[574,[-157,237,-333,0],[[1,0],[199,12]],0,[1]],[574,[83,237,-327,0],[[1,0],[199,12]],0,[1]],[574,[298,237,-325,0],[[1,0],[199,12]],0,[1]],[574,[73,237,-477,0],[[1,0],[199,12]],0,[1]],[574,[78,237,-160,0],[[1,0],[199,12]],0,[1]],[404,[580,2,-55,0],[[304,0]],0,0],[433,[660,2,-82,0],[[194,12],[199,12]],0,0],[193,[220,482,-375,0],[[348,16],[304,0]],0,0],[193,[-367,482,-380,0],[[348,16],[304,0]],0,0],[84,[-675,482,-475,50],[[125,19],[194,0]],0,[257006410]],[191,[-677,482,-678,0],[[1030,3],[304,0]],0,0],[50,[-87,482,-623,0],[[1,3],[194,3]],0,0],[47,[-170,482,-598,10],[[1,3]],0,0],[47,[-5,482,-595,30],[[1,3]],0,0],[565,[-87,482,-608,40],[[1001,16],[199,16]],[[153,[-15,35,2,38],[[26,12]],0,0],[88,[8,35,0,0],[[217,0]],0,0]],0],[107,[-137,482,-337,40],[[1030,19],[194,12]],0,0],[469,[-487,482,-40,60],[[361,19],[194,12]],0,0],[469,[-487,482,-160,60],[[361,19],[194,12]],0,0],[208,[250,2,-1125,0],[[1003,0]],0,0],[167,[125,2,-1175,0],[[194,16],[199,12]],0,0],[470,[200,2,-1175,0],[[320,12],[26,0],[302,0]],0,0],[209,[325,2,-1175,0],[[321,0]],0,0],[346,[425,2,-1125,0],[[332,0],[305,0],[199,12],[364,12]],0,0],[477,[-175,2,-1125,0],[[1004,0]],0,0],[746,[250,237,-1150,0],[[194,0],[194,12],[194,16],[348,16]],0,[1]],[747,[125,237,-1125,0],[[356,0],[352,17],[362,12],[353,12]],0,[1]],[748,[-475,237,-1175,0],[[355,0],[363,15],[346,12],[352,12]],0,[1]],[749,[-150,237,-1200,0],[[359,0],[1002,15],[359,12],[352,12]],0,[1]],[750,[-300,237,-1050,0],[[348,0],[194,12],[302,12],[348,12]],0,[1]],[760,[-425,2,-1175,70],[[348,16],[355,14]],[[735,[18,56,-18,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],0,0],[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,60],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],[[735,[0,13,0,80],[[320,12]],0,0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],0]],63]'

local t = game:GetService("HttpService"):JSONDecode(json)

for i,v in pairs(t)do
	print(i,v)
end

The same code also crashes Studio when ran from the command bar, throwing this exception:

Unsure if this is a bug, or a limitation within Lua and/or the platform.

EDIT: Attempting to index the table causes a crash as well.

7 Likes

Stack overflow?

2 Likes

Probably. That table isn’t that large or deeply nested though, so it seems pretty strange.

1 Like

Why would it be stack overflow? There isn’t any recursion so isn’t there only 1 member in the stack?

That exception smells like it blew the stack. Also don’t know the implementation details for JSONDecode - maybe it uses recursion?

1 Like

My bad, I thought the for loop was causing the problem

Thank you for reporting this bug with a repro, we are investigating and working on the fix.

3 Likes

We have rolled out this fix for studio, RCC, and desktop clients. Please let me know if you continue to have issues with this.

2 Likes