json decoder accepted broken json now fixed, and amended unit tests.