Code
Code
"_meta":{"totalCount":17,"pageCount":1,"currentPage":1,"perPage":20}}Code
im new to programming and i need help inCode
retrieving the results from the webapi to my textview on xamarin??Code
Code
this is the WEBAPI address : http://api.iolab.net/v1/exams?access-token=Code
need help.
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 4, 2016, 2:06 AM EDT
Hi Chioma,
Please modify the response to the proper Json format.
var validJsonData = data.replace(/[^a-z0-9\s",{}:[]"]/gi, '').replace(/[_\s]/g, ' ');
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 4, 2016, 12:00 AM EDT
Chioma JoshuaRank #5,602 · 293 reputationPosted May 4, 2016, 1:19 AM EDT
Chioma JoshuaRank #5,602 · 293 reputationPosted May 5, 2016, 12:44 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 5, 2016, 1:34 AM EDT
Thanks Chioma,
I believe this is due to the object may not available or disposed before you access that.
Chioma JoshuaRank #5,602 · 293 reputationPosted May 5, 2016, 1:44 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 5, 2016, 1:52 AM EDT
Can you add this line in your configuration file [Web.config]
Chioma JoshuaRank #5,602 · 293 reputationPosted May 5, 2016, 1:59 AM EDT
Bhuvanesh MohankumarRank #310 · 8.1K reputationPosted May 5, 2016, 2:14 AM EDT
You can also check for the "HTTPCollectionKeys",as I searched this is due to some settings issue the error mayoccurred.
Chioma JoshuaRank #5,602 · 293 reputationPosted May 5, 2016, 2:23 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts