title: Is it possible to compress JSON object in memory
body: <p>I would like to keep in memory medium size JSON file from hard disc (it have 14mb). I found easy way to do it:</p>
  
  <pre><code> public static void Load(string path = CacheFilePath)
      {
          path = Path.GetFullPath(path);
          if (!File.Exists(path))
              return;
  
          JsonSerializer serializer = new JsonSerializer();
          using (FileStream s = File.Open(path, FileMode.Open))
          using (StreamReader sr = new StreamReader(s))
          using (JsonReader red = new JsonTextReader(sr))
          {
              while (red.Read())
              {
                  JObject Data = serializer.Deserialize&lt;JObject&gt;(red);
              }
          }
      }
  </code></pre>
  
  <p>And everything is working but, this JObject take almost 360mb RAM. Is it possible to set any JSON setting to reduce this value? </p>
  
  <p>or maybe there is another way to keep data as JSON in memory?</p>
  
  <p>Quick look on file (example, real have something about 230 k):</p>
  
  <pre><code>{
      "OrderValidationData":
      {
          "Count":2,
          "Name":"OrderValidationData",
          "Keys":[
              "WAL22999-96",
              "HEL5DA 193 175-111", 
              **n**
          ],
          "Data":
          {
              "WAL22999-96":
              {
                  "MinimalNetPrice":10.00,
                  "VatRate":12.00
              },
              "HEL5DA 193 175-111":
              {
                  "MinimalNetPrice":10.00,
                  "VatRate":12.00
              }
              , **{n}**
          }
      }
  }
  </code></pre>