v1
- by lamik 9/19/202000
disable setup HTML
Setup HTML
<script
  src="https://code.jquery.com/jquery-3.5.1.min.js"
  integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0="
  crossorigin="anonymous"></script>
disable setup JavaScript
Setup JavaScript
let json = JSON.stringify(genDeepObject(500));

function genDeepObject(N) {
  // generate: {level0:{level1:{...levelN: {end:[[[...N-times...['abc']...]]] }}}...}}}
  let obj={};
  let o=obj;
  let arr = [];
  let a=arr;

  for(let i=0; i<N; i++) {
    o['level'+i]={};
    o=o['level'+i];
    let aa=[];
    a.push(aa);
    a=aa;
  }

  a[0]='abc';
  o['end']=arr;
  return obj;
}
delete caserun single casemove downdrag and drop case


ready



return eval("(" + json + ')')
delete caserun single casemove upmove downdrag and drop case


ready



return (new Function('return ('+json+')'))()
delete caserun single casemove upmove downdrag and drop case


ready



return Function('return ('+json+')')()
delete caserun single casemove upmove downdrag and drop case


ready



return JSON.parse(json)
delete caserun single casemove updrag and drop case


ready



return $.parseJSON(json)
Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN