Getting rid of notice in JSON