marianoguerra/json.human.js — pull request #13 by anaran (2013-09-15 16:04:45+00:00)
Title: report error.stack to user

Hi, this is a neat idea!

Even though this is only a demo, it might still be a good idea to try reporting details to the user.

We know that JSON data can easily get invalid by a missed trailing comma, single-quote instead of double-quotes, etc.

While the reporting is not very detailed in such cases it might still be useful to the user to see something like this:

```
Error parsing json:SyntaxError:
Unexpected token '
at Object.parse (native)
at HTMLButtonElement.doConvert (http://marianoguerra.github.io/json.human.js/js/demo.js:29:25)
```

when I make a change like that

```
{
'name': "json.human",
"description": "Convert JSON to human readable HTML",
...
```