title: Serializing a List<T> in C# and deserializing it into js array
body: <p><s>I have a razor part in my javascript but can't access the js-variable that has been put in as a parameter to the js-function.</s></p>
  
  <p>I am trying to serialize a List and then deserialize the json string into a js-array. </p>
  
  <pre><code>&lt;script&gt;
  function listContainerBlobs(json, container) {
      @*var arr = @JsonConvert.DeserializeObject(json);*@
      var arr = JSON.parse(json);
      var blobs = document.getElementById('container-blob-display').innerHTML = "&lt;h4&gt;" + container + "&lt;/h4&gt;";
      var otherDiv = document.getElementById('section-1');
      var thisDiv = document.getElementById('section-2');
  
      otherDiv.style.display = 'none';
      thisDiv.style.display = 'block';
  
      var blobNumber = 0;
  
      for (i = 0; i &lt; arr.length; i++){
          blobNumber++;
          var blobId = "blobId" + blobNumber;
          blobs += "&lt;p class='search-result' id='" + blobId + "' onclick='downloadBlob('" + blobId + "', '" + arr[i].Name + "', '" + container + "')' style='float: left; '&gt;" + arr[i].Name + "&lt;/p&gt;";
      }
  }&lt;/script&gt;
  </code></pre>
  
  <p>This is the C# code in the razor page which serializes the List returned by a method. I am wondering if the formats of the json strings are different and therefore I cannot deserialize the json string within js.</p>
  
  <pre><code>var blobs = await Model.ListContainerBlobs(container.Name);
  var jsonBlob = Json.Serialize(blobs);
  //var jsonBlob = JsonConvert.SerializeObject(blobs);
  </code></pre>
  
  <p>I use <code>blobs</code> in a few lopps and stuff in the html-page but thought I'd reuse this methodcall for the parameter in the js-function <code>listContainerBlobs(json, container)</code> therefore the json serialization. </p>
  
  <p>Js-function call:</p>
  
  <pre><code>&lt;p class="search-result blob-container" id="@containerId" onclick="listContainerBlobs('@jsonBlob','@containerModel.Name')"&gt;@containerModel.Name&lt;/p&gt;
  </code></pre>
  
  <p>Error received when debugging in the browser:
  <a href="https://i.stack.imgur.com/98HrV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/98HrV.png" alt="enter image description here"></a></p>
  
  <p><s>By reading <a href="https://stackoverflow.com/questions/21626958/using-jquery-variable-within-razor">this</a>, <a href="https://stackoverflow.com/questions/33957996/using-a-javascript-variable-within-razor">this</a> and <a href="https://stackoverflow.com/questions/46815919/razor-variable-used-within-more-razor-within-javascript">this</a> I guess I have to just accept that I can't call a js-variable inside razor.</s> </p>
  
  <p>Does anyone have a workaround on this or maybe a better solution to the serializing/deserializing of this c# list?</p>
  
  <p>If important here are the different json types I serialize into</p>
  
  <ul>
  <li>Json.Serialize(blobs); :</li>
  </ul>
  
  <blockquote>
    <p>"[{\"StreamWriteSizeInBytes\":4194304,\"ServiceClient\":{\"BufferManager\":null,\"Credentials\":{\"SASToken\":null,\"AccountName\":\"devstoreaccount1\",\"KeyName\":null,\"IsAnonymous\":false,\"IsSAS\":false,\"IsSharedKey\":true,\"IsToken\":false,\"SASSignature\":null},\"BaseUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>\"},\"DefaultRequestOptions\":{\"RetryPolicy\":{},\"AbsorbConditionalErrorsOnRetry\":null,\"LocationMode\":0,\"ServerTimeout\":null,\"MaximumExecutionTime\":null,\"ParallelOperationThreadCount\":1,\"SingleBlobUploadThresholdInBytes\":134217728,\"UseTransactionalMD5\":null,\"StoreBlobContentMD5\":null,\"DisableContentMD5Validation\":null},\"RetryPolicy\":{},\"DefaultDelimiter\":\"/\",\"AuthenticationScheme\":1},\"StreamMinimumReadSizeInBytes\":4194304,\"Properties\":{\"CacheControl\":null,\"ContentDisposition\":null,\"ContentEncoding\":null,\"ContentLanguage\":null,\"Length\":68,\"ContentMD5\":\"YUP3oQ5rwX9qEtwa7Op0Iw==\",\"ContentType\":\"text/plain\",\"ETag\":\"\\"0x8D757BD9E066830\\"\",\"Created\":\"2019-10-22T09:06:29+00:00\",\"LastModified\":\"2019-10-23T13:33:40+00:00\",\"BlobType\":2,\"LeaseStatus\":2,\"LeaseState\":1,\"LeaseDuration\":0,\"PageBlobSequenceNumber\":null,\"AppendBlobCommittedBlockCount\":null,\"IsServerEncrypted\":true,\"IsIncrementalCopy\":false,\"StandardBlobTier\":0,\"RehydrationStatus\":null,\"PremiumPageBlobTier\":null,\"BlobTierInferred\":false,\"BlobTierLastModifiedTime\":null,\"DeletedTime\":null,\"RemainingDaysBeforePermanentDelete\":null},\"Metadata\":{},\"Uri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt</a>\"},\"SnapshotTime\":null,\"IsSnapshot\":false,\"IsDeleted\":false,\"SnapshotQualifiedUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>\",\"SnapshotQualifiedStorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt</a>\"},\"CopyState\":null,\"Name\":\"FirstBlob.txt\",\"Container\":{\"ServiceClient\":{\"BufferManager\":null,\"Credentials\":{\"SASToken\":null,\"AccountName\":\"devstoreaccount1\",\"KeyName\":null,\"IsAnonymous\":false,\"IsSAS\":false,\"IsSharedKey\":true,\"IsToken\":false,\"SASSignature\":null},\"BaseUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>\"},\"DefaultRequestOptions\":{\"RetryPolicy\":{},\"AbsorbConditionalErrorsOnRetry\":null,\"LocationMode\":0,\"ServerTimeout\":null,\"MaximumExecutionTime\":null,\"ParallelOperationThreadCount\":1,\"SingleBlobUploadThresholdInBytes\":134217728,\"UseTransactionalMD5\":null,\"StoreBlobContentMD5\":null,\"DisableContentMD5Validation\":null},\"RetryPolicy\":{},\"DefaultDelimiter\":\"/\",\"AuthenticationScheme\":1},\"Uri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container</a>\"},\"Name\":\"first-container\",\"Metadata\":{},\"Properties\":{\"ETag\":null,\"HasImmutabilityPolicy\":null,\"HasLegalHold\":null,\"LastModified\":null,\"LeaseStatus\":0,\"LeaseState\":0,\"LeaseDuration\":0,\"PublicAccess\":null}},\"Parent\":{\"ServiceClient\":{\"BufferManager\":null,\"Credentials\":{\"SASToken\":null,\"AccountName\":\"devstoreaccount1\",\"KeyName\":null,\"IsAnonymous\":false,\"IsSAS\":false,\"IsSharedKey\":true,\"IsToken\":false,\"SASSignature\":null},\"BaseUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>\"},\"DefaultRequestOptions\":{\"RetryPolicy\":{},\"AbsorbConditionalErrorsOnRetry\":null,\"LocationMode\":0,\"ServerTimeout\":null,\"MaximumExecutionTime\":null,\"ParallelOperationThreadCount\":1,\"SingleBlobUploadThresholdInBytes\":134217728,\"UseTransactionalMD5\":null,\"StoreBlobContentMD5\":null,\"DisableContentMD5Validation\":null},\"RetryPolicy\":{},\"DefaultDelimiter\":\"/\",\"AuthenticationScheme\":1},\"Uri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container</a>\"},\"Container\":{\"ServiceClient\":{\"BufferManager\":null,\"Credentials\":{\"SASToken\":null,\"AccountName\":\"devstoreaccount1\",\"KeyName\":null,\"IsAnonymous\":false,\"IsSAS\":false,\"IsSharedKey\":true,\"IsToken\":false,\"SASSignature\":null},\"BaseUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>\"},\"DefaultRequestOptions\":{\"RetryPolicy\":{},\"AbsorbConditionalErrorsOnRetry\":null,\"LocationMode\":0,\"ServerTimeout\":null,\"MaximumExecutionTime\":null,\"ParallelOperationThreadCount\":1,\"SingleBlobUploadThresholdInBytes\":134217728,\"UseTransactionalMD5\":null,\"StoreBlobContentMD5\":null,\"DisableContentMD5Validation\":null},\"RetryPolicy\":{},\"DefaultDelimiter\":\"/\",\"AuthenticationScheme\":1},\"Uri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>\",\"StorageUri\":{\"PrimaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>\",\"SecondaryUri\":\"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container</a>\"},\"Name\":\"first-container\",\"Metadata\":{},\"Properties\":{\"ETag\":null,\"HasImmutabilityPolicy\":null,\"HasLegalHold\":null,\"LastModified\":null,\"LeaseStatus\":0,\"LeaseState\":0,\"LeaseDuration\":0,\"PublicAccess\":null}},\"Parent\":null,\"Prefix\":\"\"},\"BlobType\":2}]"</p>
  </blockquote>
  
  <ul>
  <li>Jsonconvert.SerializeObject(blobs); :</li>
  </ul>
  
  <blockquote>
    <p>{[{"streamWriteSizeInBytes":4194304,"serviceClient":{"bufferManager":null,"credentials":{"sasToken":null,"accountName":"devstoreaccount1","keyName":null,"isAnonymous":false,"isSAS":false,"isSharedKey":true,"isToken":false,"sasSignature":null},"baseUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>"},"defaultRequestOptions":{"retryPolicy":{},"absorbConditionalErrorsOnRetry":null,"locationMode":0,"serverTimeout":null,"maximumExecutionTime":null,"parallelOperationThreadCount":1,"singleBlobUploadThresholdInBytes":134217728,"useTransactionalMD5":null,"storeBlobContentMD5":null,"disableContentMD5Validation":null},"retryPolicy":{},"defaultDelimiter":"/","authenticationScheme":1},"streamMinimumReadSizeInBytes":4194304,"properties":{"cacheControl":null,"contentDisposition":null,"contentEncoding":null,"contentLanguage":null,"length":68,"contentMD5":"YUP3oQ5rwX9qEtwa7Op0Iw==","contentType":"text/plain","eTag":"\u00220x8D757BD9E066830\u0022","created":"2019-10-22T09:06:29+00:00","lastModified":"2019-10-23T13:33:40+00:00","blobType":2,"leaseStatus":2,"leaseState":1,"leaseDuration":0,"pageBlobSequenceNumber":null,"appendBlobCommittedBlockCount":null,"isServerEncrypted":true,"isIncrementalCopy":false,"standardBlobTier":0,"rehydrationStatus":null,"premiumPageBlobTier":null,"blobTierInferred":false,"blobTierLastModifiedTime":null,"deletedTime":null,"remainingDaysBeforePermanentDelete":null},"metadata":{},"uri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt</a>"},"snapshotTime":null,"isSnapshot":false,"isDeleted":false,"snapshotQualifiedUri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>","snapshotQualifiedStorageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container/FirstBlob.txt</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container/FirstBlob.txt</a>"},"copyState":null,"name":"FirstBlob.txt","container":{"serviceClient":{"bufferManager":null,"credentials":{"sasToken":null,"accountName":"devstoreaccount1","keyName":null,"isAnonymous":false,"isSAS":false,"isSharedKey":true,"isToken":false,"sasSignature":null},"baseUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>"},"defaultRequestOptions":{"retryPolicy":{},"absorbConditionalErrorsOnRetry":null,"locationMode":0,"serverTimeout":null,"maximumExecutionTime":null,"parallelOperationThreadCount":1,"singleBlobUploadThresholdInBytes":134217728,"useTransactionalMD5":null,"storeBlobContentMD5":null,"disableContentMD5Validation":null},"retryPolicy":{},"defaultDelimiter":"/","authenticationScheme":1},"uri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container</a>"},"name":"first-container","metadata":{},"properties":{"eTag":null,"hasImmutabilityPolicy":null,"hasLegalHold":null,"lastModified":null,"leaseStatus":0,"leaseState":0,"leaseDuration":0,"publicAccess":null}},"parent":{"serviceClient":{"bufferManager":null,"credentials":{"sasToken":null,"accountName":"devstoreaccount1","keyName":null,"isAnonymous":false,"isSAS":false,"isSharedKey":true,"isToken":false,"sasSignature":null},"baseUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>"},"defaultRequestOptions":{"retryPolicy":{},"absorbConditionalErrorsOnRetry":null,"locationMode":0,"serverTimeout":null,"maximumExecutionTime":null,"parallelOperationThreadCount":1,"singleBlobUploadThresholdInBytes":134217728,"useTransactionalMD5":null,"storeBlobContentMD5":null,"disableContentMD5Validation":null},"retryPolicy":{},"defaultDelimiter":"/","authenticationScheme":1},"uri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container</a>"},"container":{"serviceClient":{"bufferManager":null,"credentials":{"sasToken":null,"accountName":"devstoreaccount1","keyName":null,"isAnonymous":false,"isSAS":false,"isSharedKey":true,"isToken":false,"sasSignature":null},"baseUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary</a>"},"defaultRequestOptions":{"retryPolicy":{},"absorbConditionalErrorsOnRetry":null,"locationMode":0,"serverTimeout":null,"maximumExecutionTime":null,"parallelOperationThreadCount":1,"singleBlobUploadThresholdInBytes":134217728,"useTransactionalMD5":null,"storeBlobContentMD5":null,"disableContentMD5Validation":null},"retryPolicy":{},"defaultDelimiter":"/","authenticationScheme":1},"uri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>","storageUri":{"primaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1/first-container</a>","secondaryUri":"<a href="http://127.0.0.1:10000/devstoreaccount1-secondary/first-container" rel="nofollow noreferrer">http://127.0.0.1:10000/devstoreaccount1-secondary/first-container</a>"},"name":"first-container","metadata":{},"properties":{"eTag":null,"hasImmutabilityPolicy":null,"hasLegalHold":null,"lastModified":null,"leaseStatus":0,"leaseState":0,"leaseDuration":0,"publicAccess":null}},"parent":null,"prefix":""},"blobType":2}]}</p>
  </blockquote>
  
  <p>To recreate this, serialize a List by C#, send the json string through onclick="" to your js-function and deserialize the string inside the function. </p>