Shubham Kumar

Shubham Kumar

  • NA
  • 34
  • 394

Store Data in data base.

Jun 16 2021 6:22 AM

How to store this data in data base 

{"customEntityId":106,"title":"Test","model":{"shortDescription":"Test","thumbnailImageAssetId":3,"categoryIds":[7],"categoryId":7,"testCheckboxList3":null,"thumbnailImageAssets":[3],"testHtml":"<p>Test</p>","testDocumentId":1,"pageId":13,"pageDirectoryId":3,"pageIds":null},"publish":true,"customEntityDefinitionCode":"SIMBLP"}

I have use this but not working

Dictionary<string, int> empsAndNumbers =
        JsonConvert.DeserializeObject<Dictionary<string, int>>(jsonString);

This error display 

{"Could not convert string to integer: Test. Path 'title', line 1, position 36."}


Answers (2)