Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8142983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T12:58:27+00:00 2026-06-06T12:58:27+00:00

i am doing jSon parsing in C# (ASP).The problem is that when the JSON

  • 0

i am doing jSon parsing in C# (ASP).The problem is that when the JSON from klout is very complex, this is the response

{"myInfluencers":[{"entity":{"id":"851563","payload":{"kloutId":"851563","nick":"YouTube","score":{"score":100.0},"scoreDeltas":{"dayChange":0.0,"weekChange":0.0,"monthChange":0.0}}}},{"entity":{"id":"100768049884337217","payload":{"kloutId":"100768049884337217","nick":"JessicaBiel","score":{"score":65.81697082519531}}}},{"entity":{"id":"879345","payload":{"kloutId":"879345","nick":"brokemogul","score":{"score":65.55970764160156},"scoreDeltas":{"dayChange":-0.2452850341796875,"weekChange":-0.6857528686523438,"monthChange":-2.5359420776367188}}}},{"entity":{"id":"25332752669424610","payload":{"kloutId":"25332752669424610","nick":"EsteeStanley","score":{"score":64.1717529296875}}}},{"entity":{"id":"28710452389286536","payload":{"kloutId":"28710452389286536","nick":"robknox_ys","score":{"score":60.353816986083984}}}}],"myInfluencees":[{"entity":{"id":"98516250154496343","payload":{"kloutId":"98516250154496343","nick":"LYNASXD","score":{"score":14.632675170898438}}}},{"entity":{"id":"42784201225370648","payload":{"kloutId":"42784201225370648","nick":"JenThackray","score":{"score":14.392120361328125}}}},{"entity":{"id":"52635827290381715","payload":{"kloutId":"52635827290381715","nick":"JTChile","score":{"score":13.279963493347168}}}},{"entity":{"id":"60235650788244656","payload":{"kloutId":"60235650788244656","nick":"upallnight356","score":{"score":11.61323070526123}}}},{"entity":{"id":"97108875505882083","payload":{"kloutId":"97108875505882083","nick":"anisahmutiahna","score":{"score":10.5490140914917}}}}],"myInfluencersCount":14,"myInfluenceesCount":25}

The classes generated are as follows

public class Score
{
    public double score { get; set; }
}

public class ScoreDeltas
{
    public double dayChange { get; set; }
    public double weekChange { get; set; }
    public double monthChange { get; set; }
}

public class Payload
{
    public string kloutId { get; set; }
    public string nick { get; set; }
    public Score score { get; set; }
    public ScoreDeltas scoreDeltas { get; set; }
}

public class Entity
{
    public string id { get; set; }
    public Payload payload { get; set; }
}

public class MyInfluencer
{
    public Entity entity { get; set; }
}

public class Score2
{
    public double score { get; set; }
}

public class Payload2
{
    public string kloutId { get; set; }
    public string nick { get; set; }
    public Score2 score { get; set; }
}

public class Entity2
{
    public string id { get; set; }
    public Payload2 payload { get; set; }
}

public class MyInfluencee
{
    public Entity2 entity { get; set; }
}

public class RootObject
{
    public List<MyInfluencer> myInfluencers { get; set; }
    public List<MyInfluencee> myInfluencees { get; set; }
    public int myInfluencersCount { get; set; }
    public int myInfluenceesCount { get; set; }
}

I want to bind the results with a gridview.Even if i use JSON.NET then we can’t extract the things one by one.I used deserialize before but here the scenerio is too nested.
Anyone who can help me to find a good way to solve this.Thank you in meekness

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T12:58:28+00:00Added an answer on June 6, 2026 at 12:58 pm

    The best solution that I found was to create the small classes

    • Using JSON.NET

      JObject o = JObject.Parse(text_klout);
      influencee = o.SelectToken(“myInfluencees”).ToString();
      influencer = o.SelectToken(“myInfluencers”).ToString();
      Seperate them
      Then iterate over each other using

      JavaScriptSerializer _jsserializer = new JavaScriptSerializer();
      it works…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm parsing a JSON response via $.ajax() and building a form from this object's
I was doing Json parsing. As of now, I was reading it from a
i m doing json parsing and i getting response for data like date:1330387200 so
I have a problem with parsing a JSON result. This is what I get
I'm parsing a JSON array returned from YouTube, and while doing so I created
I am doing some json parsing in a bash script: curl http://myurl.com/get.json | sed
what I am doing is creating a form using JSON this form can then
From a security perspective, I can see simply doing an 'eval' on incoming JSON
I make an ajax request, and the JSON response, after parsing, gives me the
i am doing JSON parsing for particular web service with different IDs,Parsing returns some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.