Rohan

Rohan

  • NA
  • 1.4k
  • 114.8k

Sent Data in array

Jun 15 2022 6:46 AM

Hello everyone This is my code .It's working fine but I have face a issue please let me know how to sent rating in array because I want to pickup this data in postmark template . I have sent rating in this form "4" it's as it is pickup.

{ "pubResult", new []{
      new Dictionary<string,object> {
        { "this", new Dictionary<string,object> {
          { "key", new Dictionary<string,object> {
            { "Term", "Flowers" },
          }},
          { "data", new []{
            new Dictionary<string,object> {
              { "this", new Dictionary<string,object> {
                { "PubImgUrl", "abc.png" },
                { "Name", "abc.com" },
                { "Title", "Lotus Meaning -" },
                { "Rating","4"}----
              }},
            },
            new Dictionary<string,object> {
              { "this", new Dictionary<string,object> {
                { "PubImgUrl", "abc.png" },
                { "Name", "abc.com" },
                { "Title", "The Flower Podcast" },
                { "Description", "The Flower Podcast Hosts A Weekly Podcast About Flowers For The Floral Industry And Related Businesses." },
                { "Rating","4"}
              }},
            },
          }},
        }},
      },
       new Dictionary<string,object> {
        { "this", new Dictionary<string,object> {
          { "key", new Dictionary<string,object> {
            { "Term", "Car" },
          }},
          { "data", new []{
            new Dictionary<string,object> {
              { "this", new Dictionary<string,object> {
                { "PublisherImgUrl", "xyz.png" },
                { "Name", "Spor" },
                { "Title", "Classic Car" },
                { "Description", "Sports Car" },
                { "Rating","4"}
              }},
            },
            new Dictionary<string,object> {
              { "this", new Dictionary<string,object> {
                { "PubImgUrl", "new.png" },
                { "Name", "Charm" },
                { "Title", "Charm" },
                { "Description",  "Looking For Car Finance" },
               { "Rating","3"}
              }},
            },
          }},
        }},
      },
    }},


Answers (2)