------解决方案--------------------
// Remove the jsonDATA() callback cladding. inputContent = inputContent.Trim(); if (inputContent.StartsWith("jsonDATA(")) inputContent = inputContent.Remove(0, "jsonDATA(".Length); if (inputContent.EndsWith(")")) inputContent = inputContent.Substring(0, inputContent.Length-1);
// Create a serializer for our type DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(XXX));
// Convert the text to a buffer of bytes using (MemoryStream stream = new MemoryStream(Encoding.Unicode.GetBytes(inputContent))) { // Convert the stream buffer to an object with our serializer. return serializer.ReadObject(stream) as XXX; }