JSON improvement, cookie