Validates and fixes some JSON issues, eg removing newlines etc
fromJSONish(json, ...)
json
...
parsed JSON as an R object