JsonUtils: add javadoc; disallow null argument to .toString(); add tests