Corrected toJSOn...

... which had a small problem compared to what we were expecting