Try to JSON parse but if it fails just return the arg.