I'm parsing through a text a sometimes I get the following
{"name":"John","last" : Doe", "Food":"Fries","Coffee" : "Need}
I'm dealing with someone else's data here so I just have to deal with it.
Is there a possible use of regex expressions (or anything else for that matter) Where I can read through the file and whenever I find unmatched quotations modify the file by matching them.
So I can end up with
{"name":"John","last" : "Doe", "Food":"Fries","Coffee" : "Need"}
[]{}"\:,?,:]}, and an opened quote is only a little more complicated. But if you have to handle strings like"spam:\"eggs\"}"that may be missing quotes, that's a different story.