remove memleak from io.load for JSON