Deserializing a string property value to a class instance using JSON.Net
问题 I'm deserializing some JSON from a server which is, for the most part, simple: { "id": "ABC123" "number" 1234, "configured_perspective": "ComplexPerspective[WithOptions,Encoded]" } That "configured_perspective" property, however, is an unfortunate case of the server using a weirdly put-together string when a nested object would have been better. To ease the suffering of our .NET users, I convert this into a custom class in my object model: public class Example { public string id { get; set; }