0

how to remove an array item in Global.JSON parse object???

Nadhas
  • 5,421
  • 2
  • 28
  • 42

1 Answers1

0

When you parse a JSON string to a JavaScript object, it becomes a JavaScript object, and the JSON string becomes irrelevant. So the heart of your question is "how do I remove an item from an array?"

For that, you either delete or splice out the item you no longer want. The usage and difference of these has been answered elsewhere: Deleting array elements in JavaScript - delete vs splice

Community
  • 1
  • 1
Dawson Toth
  • 5,580
  • 2
  • 22
  • 37