So, I have a file with a large JSON array of objects, and unfortunately, every field is wrapped in double quotes. Two fields in particular (Latitude and Longitude) needs to have the quotes removed.
I just want to use RegEx within an editors find/replace feature to remove the quotes…but I am struggling to come up with the RegEx.
This is very specific, I am just hoping there is a RegEx guru out there that could point me in the right direction on how to free the 37 and the -122 below from their quoted prisons.
{
"ClubId": "TestWith01",
"ClubName": "TestWith01",
"_DistrictNumber": "K05",
"MeetingDay1": "2nd & 4th MO",
"MeetingTime1": "6:30 PM",
"MeetingDay2": "",
"URL": "http://www.someurl.com",
"Latitude": "37",
"Longitude": "-122",
"MeetingAddress": {
"Address1": "Sample With Quotes",
"Address2": "",
"Address3": "",
"City": "Treasure Island",
"State": "FL",
"PostalCode": "33706",
"Country": "United States"
}
},
This should replace anything that has an optional minus, followed by 1+ digits. You did not specify your language, so I guessed javascript.