Can we do some validation to ensure ```data``` is a JSON object before sending?