Update JSON.cs

this is untested, but a regular expression should get the job done.
Update JSON.cs
Merge pull request #1 from travcunn/patch-1

Update JSON.cs from original code, to regex.