try and decode json