Linked Questions

Popular Questions

I have a Json data which contains multiple array of objects sends by mvc controller. I need to extract those array differently. I want getEmailBasicData array, getEmailParticipantData array, getEmailDocumentData array individually How can I do that? Here is my code-

"{
  "$id": "1",
  "getEmailBasicData": [
    {
      "$id": "2",
      "notificationId": 23,
      "subject": "final test",
      "message": "<p>this is body</p>\n",
      "sendStatus": -1,
      "lastSendTime": null
    },
    {
      "$id": "3",
      "notificationId": 24,
      "subject": "final subject",
      "message": "<p>final body</p>\n",
      "sendStatus": -1,
      "lastSendTime": null
    },
    {
      "$id": "12",
      "notificationId": 33,
      "subject": "Final Test",
      "message": "<p>Final body</p>\n",
      "sendStatus": -1,
      "lastSendTime": null
    }
  ],
  "getEmailParticipantData": [
    {
      "$id": "13",
      "id": 55,
      "notificationId": 23,
      "employeeId": -1,
      "name": "here is the name",
      "emailAddress": "[email protected]",
      "contactNo": null
    },
    {
      "$id": "14",
      "id": 56,
      "notificationId": 23,
      "employeeId": -1,
      "name": "another name",
      "emailAddress": "[email protected]",
      "contactNo": null
    } ],
    "getEmailDocumentData": [
    {
      "$id": "36",
      "id": 40,
      "notificationId": 23,
      "docId": 1,
      "attachmentLocation": "1_1_50474603_2287746231437248_8529393497499762688_n.jpg"
    },
       {
      "$id": "46",
      "id": 50,
      "notificationId": 33,
      "docId": 1,
      "attachmentLocation": 
 "1_1_50474603_2287746231437248_8529393497499762688_n.jpg"
    }
  ]
}"

Related Questions