decode json data from cookies