Remove JSON stuffs and memory leak warning