return original value if json parsing fails

I found another bug with the json regex. This approach is safer.