How to removed specific array from json

resource.json

  {
     "code": [
   "lol",
   "xD",
   "LAMO"
   ]
   }

index.js

let random = resource.code[Math.floor(Math.random()*resource.code.length)]

i need to removed that array thing in the json

Hey SudhanPlayz,

Can you please understand what you are trying to do?

You know you can just remove an array by removing the text:

"code": [
   "lol",
   "xD",
   "LAMO"
   ]

If you didn’t know, you know now :smiley:

Hope I helped you.

Obviously, he meant removing the array using code.

New Topic: How to use delete?

New Topic : How to use delete?