Solved

JSON Advice

Posted on 2015-01-08
7
94 Views
Last Modified: 2016-08-29
I have a simple C# / .Net project that parses a .json file. It parses and displays the most popular pizzas in a DataGridView. My question pertains to .json parsing.

There is more than one way to approach the problem. I used the JavaScriptSerializer and LINQ. One could use dictionaries, JSON.Net or even something like these:

http://www.codeproject.com/Articles/159450/fastJSON

An XML approach:

http://www.thinqlinq.com/Post.aspx/Title/JSON-Literals-for-VB?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+thinqlinq%2Frss+%28Thinq+Linq%29

Is my project in its current state the recommended approach / accepted approach?

I tried to attach the .json file and .Net project (WinForms for simplicity) in .zip but this site would not allow it. Contact me for source.

Thanks
0
Comment
Question by:elthombre
  • 5
7 Comments
 
LVL 78

Expert Comment

by:David Johnson, CD, MVP
ID: 40539715
upload the file(s) to http://www.ee-stuff.com/Expert/
0
 

Author Comment

by:elthombre
ID: 40539761
Thanks David!
0
 

Author Comment

by:elthombre
ID: 40539928
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:elthombre
ID: 40543851
I've requested that this question be deleted for the following reason:

I need to rephrase the question as it has not gotten any response, etc. I will have to provide some snippets vs. files and a more clear request regarding result.
0
 
LVL 23

Accepted Solution

by:
Michael74 earned 500 total points
ID: 40543661
This link shows the results of testing against JSON Parsing libraries
http://sagistech.blogspot.com.au/2010/03/parsing-twitter-json-comparing-c.html

It is worth noting that in the tests he performed the File size was 285Mb, containing 208,530 entries. For the JSON file you have attached you will not notice any real difference between the different techniques.

If you want to know about JSON.Net have a look at this page
http://james.newtonking.com/json
0
 

Author Comment

by:elthombre
ID: 40543849
Thanks Michael. Exactly what I was looking for.
0
 

Author Closing Comment

by:elthombre
ID: 40543852
Referenced a nice article on JSON parsing performance which would clearly influence architectural decisions.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now