Rohan

Rohan

  • NA
  • 1.4k
  • 116.6k

Face a issue in

Apr 21 2022 4:55 AM

I have sent this data for testing purpose for sent email in postmark

   { "publisResult", new []{
      new Dictionary<string,object> {
        { "this", new Dictionary<string,object> {
          { "key", new Dictionary<string,object> {
            { "Search", "Common" },
          }},
          { "data", new []{
            new Dictionary<string,object> {
              { "this", new Dictionary<string,object> {
                { "PubImgUrl", "xyz" },
                { "Name", "JHON" },
                { "Title", "Get the same random image every time based on a seed" },
                { "Description", "Lorem Ipsum is simply dummy text of the printing and typesetting industry" },
              }},
            },
          }},
             { "data", new []{
            new Dictionary<string,object> {
              { "this", new Dictionary<string,object> {
                { "PubImgUrl", "abc" },
                { "Name", "JHON" },
                { "Title", "Get the same random image every time based on a seed" },
                { "Description", "Lorem Ipsum is simply dummy text of the printing and typesetting industry" },
              }},
            },
          }},
        }},
      },
    }},

 

But Face a this issue - ArgumentException: An item with the same key has already been added. Key: data


Answers (2)