test invalid JSON code path for 100% coverage