basic intent is to exercise must of the code paths in toJson functions, and check no exception is thrown