Your source is not emitting valid JSON. Why can't you fix the source? For your
showParams example, the problem is that there are unescaped control characters -- this isn't even valid JavaScript. There is literally no general solution for your problem.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.