title: Deserialization .json to Bitmap image c#
body: <p>I have a bitmap image, which I converted to a JSON file using:</p>
  
  <pre><code>string json = new System.Web.Script.Serialization.JavaScriptSerializer().Serialize(Bitmap image); 
  </code></pre>
  
  <p>Content of .json file:</p>
  
  <pre><code>{  
     "Tag":null,
     "PhysicalDimension":{  
        "IsEmpty":false,
        "Width":376,
        "Height":221
     },
     "Size":{  
        "IsEmpty":false,
        "Width":376,
        "Height":221
     },
     "Width":376,
     "Height":221,
     "HorizontalResolution":96,
     "VerticalResolution":96,
     "Flags":2,
     "RawFormat":{  
        "Guid":"b96b3caa-0728-11d3-9d7b-0000f81ef32e"
     },
     "PixelFormat":2498570,
     "Palette":{  
        "Flags":62,
        "Entries":[  
  
        ]
     },
     "FrameDimensionsList":[  
        "7462dc86-6180-4c7e-8e3f-ee7333a7a483"
     ],
     "PropertyIdList":[  
  
     ],
     "PropertyItems":[  
  
     ]
  }
  </code></pre>
  
  <p>Now I tried to deserialize the file in this way:</p>
  
  <pre><code>Bitmap bm = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize&lt;Bitmap&gt;(json);
  </code></pre>
  
  <p>But got the error:</p>
  
  <blockquote>
    <p>System.MissingMethodException: "For the" System.Bitmap "type, the
    constructor without parameters is not defined."</p>
  </blockquote>
  
  <p>Is there another way to deserialize the file or how can I fix this code?</p>
  
  <p>Thanks!</p>