So here’s the story:
I’ve got a local, massive .json
file that’s quite deep and complicated. Within this file, I need to update an attribute with a URL for stored images. That’s not the part I’m confused about, honestly; I’ve already got working loops to iterate through and edit that value.
The problem is that I don’t know how to make this happen in a way that actually opens the local file, edits it (or rather a copy of it(for safety!)), saves those edits, and gives me back the file I need.
I could just do it manually, copying and pasting the values where they need to go…but there’s about 500 I need to change within the file and I just don’t want to spend 3 hours doing this. Plus I’ll probably need this file-writing at some point in the future.
I’ve done similar things in courses, but always with IDEs that are like training wheels, so doing it in the real world is harder. I’ve tried searching, but hit snags at every turn.
Any help would be appreciated. Thanks!