How to send the multiple jsonobjects inside the JSONArray to the api using retrofit android

149 Views Asked by At

My Format

  { 
      "iList": [
        {
          "ADDRESS1": "string",
          "CITY": "string",
          "COUNTRY": "string",
          "EMAIL_ADDRESS": "string",
           "FIRST_NAME": "string",
         
          "LAST_NAME": "string",
          "PRIMARY_PHONE_NUMBER": "string",
          "STATE_PROVINCE": "string",
          "ZIP_CODE": "string"
        }
      ],
      "iaList": [
        {
          "ATTRIBUTE_NAME": "string",
          "CUSTOM_PERMISSION": "string",
          "Id": "string",
          "GLOBAL_PERMISSION": "string"
        },
       {
          "ATTRIBUTE_NAME": "string",
          "CUSTOM_PERMISSION": "string",
          "Id": "string",
          "GLOBAL_PERMISSION": "string"
        },
    
    {
          "ATTRIBUTE_NAME": "string",
          "CUSTOM_PERMISSION": "string",
          "Id": "string",
          "GLOBAL_PERMISSION": "string"
        }
    
    
      ],
      "Uplift": [
        {
          "AGE": 0,
          "AUTOMOBILE": "string",
          "CHILD_AGES": "string",
          "DATE_OF_BIRTH": "string",
          "EDUCATION": "string",
          "GENDER": "string",
        }
      ]
    }   

I have created a main model class with List and each individual model class. But i have no idea of doing iaList. How can i pass multiple json object inside json array . Please anyone help me

0

There are 0 best solutions below