Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.