mayur pandit

mayur pandit

  • 1.6k
  • 279
  • 21.5k

remove square brackets from response.

May 27 2019 11:05 PM
Kindly check below method. below method returning generic list. method returning response with squre brackate's.
How remoe squere brackets from response. I try lot's of thing but not work. Kindly suggest and help.
[HttpPost]
public List<VerifyNumberResponseMsg> PostVerifyMoNo(VerifyNumber VerifyNumber)
{
ParentMobileVerification pmv = new ParentMobileVerification();
List<VerifyNumberResponseMsg> lst = pmv.getVerifyMoNoResult(VerifyNumber);
return lst;
}
I have getting below response.
 
[
      {
            "Status": "False",
            "Message": "number not exist"
      }
]

Answers (2)