En cours

Parse JSON with C# & LINQ

I need to have the following JSON parsed using C#... I cannot use any extra libraries to do this... so no [url removed, login to view] etc.

The JSON to pars is attached to the project. I don't need anything fancy I just need the following code adjusted so this works. I need to see all the items queried using LINQ and displayed in the gridview.

This is the code I need to work:

JavaScriptSerializer jsonSerializer = new JavaScriptSerializer();

List<brainStromIdeas> brainStromIdeasList = new List<brainStromIdeas>();

brainStromIdeasList = [url removed, login to view]<List<brainStromIdeas>>("[" + json + "]");

var query = from brainStromIdeas in brainStromIdeasList

where [url removed, login to view] == 16530

select new

{

[url removed, login to view],

[url removed, login to view],

brainStromIdeas.PhotoUrl_36x36,

[url removed, login to view]

};

string ideas = [url removed, login to view](new object[]

{

"<br/><br/>" + [url removed, login to view]().Id + " " + [url removed, login to view]().PunchLine +

" " + [url removed, login to view]().DescriptionBlurb

});

[url removed, login to view]("<br/>Here: <br/>" + ideas);

GridView test = new GridView();

[url removed, login to view](test);

[url removed, login to view] = query;

[url removed, login to view]();

}

class brainStromIdeas

{

public int Id { get; set; }

public string PunchLine { get; set; }

public string DescriptionBlurb { get; set; }

public string PhotoUrl_36x36 { get; set; }

}

Compétences : .NET, ASP, Programmation C#

Voir plus : json amp, json query, json linq, get string, linq any, json, json c, json string, deserialize json string, json project, json response, gridview amp, json string net, response write, gridview project, json net, net list controls, object ideas, deserialize json string net, net json, json deserialize, work gridview, select gridview, project gridview, net gridview

Concernant l'employeur :
( 67 commentaires ) tucson, United States

N° du projet : #2352100

Décerné à :

dellasera

I already take a look of the class structure and I can have it done in 2 hours. (I need 1 hour to ensure it is working as expected) I will provide you the object and the factoring class so you will be able to run Unit Plus

30 $ USD en 1 jour
(4 Commentaires)
3.0

4 freelance ont fait une offre moyenne de 30 $ pour ce travail

jerryho1983

Can do it.Glad to discuss with you about your project!Please check your message

30 $ USD en 0 jours
(21 Commentaires)
5.6
jjn

Hi there, I would very much like to complete your project. I'm fully qualified to solve your problem and I've got 10 years of experience programmering in .NET and I have used JSON in many different applications - in Plus

30 $ USD en 1 jour
(0 Commentaires)
0.0
jeanpatzlaff

Hi, I undertand that you need the JSON in the file to parse and you just need the following code adjusted so it works. You need to see all the items parsed from the JSON queried using LINQ and displayed in the gridview Plus

30 $ USD en 2 jours
(0 Commentaires)
0.0