# I want to validate r (Language, Year of Experience, House Number, City, Country, Mobile, Current Address) these field from the Json code. But I am getting error

**URL:** <https://community.postman.com/t/i-want-to-validate-r-language-year-of-experience-house-number-city-country-mobile-current-address-these-field-from-the-json-code-but-i-am-getting-error/43163>\
**Category:** Help Hub\
**Tags:** tests, variables, collections, json\
**Created:** [January 24, 2023, 5:42am UTC](https://community.postman.com/t/i-want-to-validate-r-language-year-of-experience-house-number-city-country-mobile-current-address-these-field-from-the-json-code-but-i-am-getting-error/43163 "2023-01-24T05:42:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kallol-sarker](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@kallol-sarker](https://community.postman.com/u/kallol-sarker)\
**Post date:** [January 24, 2023, 5:42am UTC](https://community.postman.com/t/i-want-to-validate-r-language-year-of-experience-house-number-city-country-mobile-current-address-these-field-from-the-json-code-but-i-am-getting-error/43163/1 "2023-01-24T05:42:44Z")

</div>

{  
“status”: “true”,  
“data”: {  
“first\_name”: “Kallol”,  
“middle\_name”: “Sarker”,  
“last\_name”: “Ananda”,  
“date\_of\_birth”: “14/09/1997”,  
“TechnicalDetails”: [  
{  
“id”: 90154,  
“language”: [  
“Bangla”,  
“English”  
],  
“yearexp”: “Two years”,  
“lastused”: “Before After”,  
“st\_id”: “4180051”  
}  
],  
“Address”: [  
{  
“Permanent\_Address”: {  
“House\_Number”: “40/4”,  
“City”: “Dhaka”,  
“State”: “Dhaka”,  
“Country”: “Bangladesh”,  
“PhoneNumber”: [  
{  
“Std\_Code”: “1162090”,  
“Home”: “Tower Twenty Four”,  
“Mobile”: “+8801746684953”  
},  
{  
“Std\_Code”: “1110338426”,  
“Home”: “Tower twenty four”,  
“Mobile”: “+8801913903626”  
}  
]  
},  
“Current\_Address”: null,  
“stId”: “4180051”  
},  
{  
“Permanent\_Address”: {  
“House\_Number”: “40/4”,  
“City”: “Dhaka”,  
“State”: “Dhaka”,  
“Country”: “Bangladesh”,  
“PhoneNumber”: [  
{  
“Std\_Code”: “1162090”,  
“Home”: “Tower Twenty Four”,  
“Mobile”: “+8801746684953”  
},  
{  
“Std\_Code”: “1110338426”,  
“Home”: “Tower twenty four”,  
“Mobile”: “+8801913903626”  
}  
]  
},  
“Current\_Address”: null,  
“stId”: “4180051”  
},  
{  
“Permanent\_Address”: {  
“House\_Number”: “40/4”,  
“City”: “Dhaka”,  
“State”: “Dhaka”,  
“Country”: “Bangladesh”,  
“PhoneNumber”: [  
{  
“Std\_Code”: “1162090”,  
“Home”: “Tower Twenty Four”,  
“Mobile”: “+8801746684953”  
},  
{  
“Std\_Code”: “1110338426”,  
“Home”: “Tower twenty four”,  
“Mobile”: “+8801913903626”  
}  
]  
},  
“Current\_Address”: null,  
“stId”: “4180051”  
},  
{  
“Permanent\_Address”: {  
“House\_Number”: “40/4”,  
“City”: “Dhaka”,  
“State”: “Dhaka”,  
“Country”: “Bangladesh”,  
“PhoneNumber”: [  
{  
“Std\_Code”: “1162090”,  
“Home”: “Tower Twenty Four”,  
“Mobile”: “+8801746684953”  
},  
{  
“Std\_Code”: “1110338426”,  
“Home”: “Tower twenty four”,  
“Mobile”: “+8801913903626”  
}  
]  
},  
“Current\_Address”: null,  
“stId”: “4180051”  
}  
]  
}  
}

 ![Error postman tests tab](https://us1.discourse-cdn.com/getpostman/original/3X/b/1/b1459efeba90a926c56827beeb0abf9d9f67a5a5.png)

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [January 25, 2023, 10:04am UTC](https://community.postman.com/t/i-want-to-validate-r-language-year-of-experience-house-number-city-country-mobile-current-address-these-field-from-the-json-code-but-i-am-getting-error/43163/2 "2023-01-25T10:04:41Z")

</div>

Didn’t I answer this yesterday?

[I want to validate these field but I am getting error - Help - Postman](https://community.postman.com/t/i-want-to-validate-these-field-but-i-am-getting-error/43165)

Your language field validation is failing with undefined, as you are not targeting the array element properly.

It needs to be the following.

```auto
pm.test("Language field value validation", function () {
    pm.expect(jsonData.data.TechnicalDetails[0].language).to.eql(["Bangla", "English"]);
});

```

Same principle for the other assertions.
