title: Version dependent Json deserialization
body: <p>I'm looking for a way to do deserialization from Json to be version dependent using the data within the Json itself.
  I'm targeting to use <code>ServiceStack.Text.JsonDeserializer</code>, but can switch to another library.</p>
  
  <p>For example, I'd like to define a data in JSON for v1.0 to be:</p>
  
  <pre><code>{
      version: "1.0"
      condition: "A &lt; B"
  }
  </code></pre>
  
  <p>and then, a next version of the data (say 2.0) to be:</p>
  
  <pre><code>{
      version: "2.0"
      condition: ["A &lt; B", "B = C", "B &lt; 1"]
  }
  </code></pre>
  
  <p>At the end, I want to be able to validate version of the data to know how to deserialize the JSON correctly.</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>It looks like there is no any kind of implicit support for version-dependent JSON (de)serialization in known products.</p>
  
  <p>The right solution seems to be to split the task by (de)serializing only version part and then use implicit (de)serializing for the correct type(s).</p>
  
  <p>Gratitudes to everyone who shared knowledge and thoughts on the problem.</p>