I have a JSON file with numerous double quotes within the values. The file consists of nearly 27,000 records.
I need to eliminate or substitute the double quotes within the values for it to be considered a valid JSON file. How can this be achieved?
The issue I face is that some records contain only one double quote within the value, while others have multiple double quotes nested within them.
Instead of modifying or removing the quotes, another option could be to remove the entire key and its corresponding value as I do not intend to use it. Is there a simpler method to accomplish this?
Below is a snapshot of a single record from the JSON file:
{
"adlibJSON": {
"recordList": {
"record": [
{
"@attributes": {
"priref": "4372",
"created": "2011-12-09T23:09:57",
"modification": "2012-08-11T17:07:51",
"selected": "False"
},
"acquisition.date": [
"1954"
],
"documentation.title": [
"A lot of text with numerous extra double quotes like 'this' and 'that'"
] ... ...
The complication mainly arises in the value of the key: document.title
.
I currently use Sublime Text 2 for finding and replacing purposes.