I ran into a problem - you need to find a json pair "name" : "oldName" in json and replace "oldName" with "newName"
So far I've come up with only this:
data.replace( /"name":\s".*"/g, '"name": "newName"' );
But according to the condition, only "oldName" needs to be changed, everything else only helps to find what to change Instead of oldName, any text can be
Who can come up with an idea?