TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Pradeep Rawat
NA
286
8.5k
how to get the value from Deserialized data
Nov 7 2020 12:22 AM
HI, i am trying to retrieve data from API but i am unable to get the data(billFetchId, context), i have metioned Data formate below as well tried code with output.(screenshot inside zip file)
//Api data //
"data": {
"billFetchId": "hUQhddsk5UpaFL",
"context": "eyJjdXN0b2dsafdsafdsfdsafiAiTG9hbiBOdW1iZXIiLCAidsfsdafxGZXRjaElkIjogImhVUWhkU0xGazVdsf"
},
"statusCode": "success",
"statusMessage": "API is successful"
//Tried code//
var billerserializes =
new
System.Web.Script.Serialization.JavaScriptSerializer();
var billerdata = billerserializes.Serialize(billfetchrequest);
var billerresponse = webClient.UploadString(url, billerdata);
BillFetchRequest2 billfetchrequest2 =
new
BillFetchRequest2();
billfetchrequest2 = billerserializes.Deserialize<BillFetchRequest2>(billerresponse);
public
class
BillFetchRequest2
{
public
object
data {
get
;
set
; }
}
Attachment:
Pspldata.zip
Reply
Answers (
6
)
Dropdown list value and text issue
Model popup is not working in .net core