Add test for reading invalid JSON with json = true