0

My file:

{"704069756717629472": {"name": "Bob's Donuts", "value": 2}}

I want to remove this part:

"704069756717629472": {"name": "Bob's Donuts", "value": 2}

how do i do that? this is my code:

if names in c[str(ctx.author.id)]["name"]:
    #remove the json thing

c is the loaded json file, names being the name of c[str(ctx.author.id)]["name"], in this case, "Bob's Donuts"

wjandrea
  • 28,235
  • 9
  • 60
  • 81
Inlowik
  • 59
  • 6

0 Answers0