Click here to Skip to main content
15,913,587 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Reasonable message timeout Pin
PIEBALDconsult8-Sep-13 5:03
mvePIEBALDconsult8-Sep-13 5:03 
GeneralRe: Reasonable message timeout Pin
baloneyman7-Sep-13 17:23
baloneyman7-Sep-13 17:23 
GeneralRe: Reasonable message timeout Pin
aboubkr907-Sep-13 19:15
professionalaboubkr907-Sep-13 19:15 
GeneralRe: Reasonable message timeout Pin
PIEBALDconsult8-Sep-13 5:07
mvePIEBALDconsult8-Sep-13 5:07 
GeneralRe: Reasonable message timeout Pin
aboubkr9024-Sep-13 22:50
professionalaboubkr9024-Sep-13 22:50 
GeneralRe: Reasonable message timeout Pin
GenJerDan9-Sep-13 4:06
GenJerDan9-Sep-13 4:06 
GeneralRe: Reasonable message timeout Pin
aboubkr9024-Sep-13 22:49
professionalaboubkr9024-Sep-13 22:49 
GeneralAn "OMG!" Kind of Tool PinPopular
#realJSOP7-Sep-13 3:47
professional#realJSOP7-Sep-13 3:47 
Yesterday, I was tasked with creating a service plugin that retrieved JSON data from a web site, extracting a handful of data items from the returned data, and storing those items in an XML file. I had just three hours to complete the task.

The size of the returned data was a little over 30k. If you've ever dealt with JSON before, you're probably acquainted with the pain involved in determining exactly what path to follow to get what you're after. Granted, there are assemblies that are quite helpful in this regard (NewtonSoft), but with this much data, it was difficult to visualize the hierarchy. I was quite sure I wouldn't be able to pull off the required task in the time allotted.

And then, I found the Json Class Generator on codeplex. It takes your json data, and creates classes that you can include in your app and use them to serialize/deserialize the data. Combined with the NewtonSoft JSON parser, it required exactly two lines of code to organize the incoming data. I ended up finishing the task well ahead of the allotted time.

Go here JSON Class Generator on Codeplex[^]

In the interest of completeness, there is also at least one online class generator (json2csharp[^]), but I haven't tried it out yet.
".45 ACP - because shooting twice is just silly" - JSOP, 2010
-----
You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010
-----
When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013


GeneralRe: An "OMG!" Kind of Tool Pin
Ranjan.D7-Sep-13 3:54
professionalRanjan.D7-Sep-13 3:54 
GeneralRe: An "OMG!" Kind of Tool Pin
OriginalGriff7-Sep-13 3:56
mveOriginalGriff7-Sep-13 3:56 
GeneralRe: An "OMG!" Kind of Tool Pin
Paul Conrad7-Sep-13 13:29
professionalPaul Conrad7-Sep-13 13:29 
GeneralRe: An "OMG!" Kind of Tool Pin
NormDroid7-Sep-13 5:24
professionalNormDroid7-Sep-13 5:24 
GeneralRe: An "OMG!" Kind of Tool Pin
Paul Conrad7-Sep-13 13:28
professionalPaul Conrad7-Sep-13 13:28 
GeneralRe: An "OMG!" Kind of Tool Pin
BillWoodruff8-Sep-13 4:37
professionalBillWoodruff8-Sep-13 4:37 
GeneralRe: An "OMG!" Kind of Tool Pin
#realJSOP9-Sep-13 0:01
professional#realJSOP9-Sep-13 0:01 
GeneralPayPal Pin
Michael Martin6-Sep-13 22:44
professionalMichael Martin6-Sep-13 22:44 
GeneralRe: PayPal Pin
OriginalGriff6-Sep-13 22:58
mveOriginalGriff6-Sep-13 22:58 
GeneralRe: PayPal Pin
Michael Martin6-Sep-13 23:30
professionalMichael Martin6-Sep-13 23:30 
GeneralRe: PayPal Pin
OriginalGriff6-Sep-13 23:35
mveOriginalGriff6-Sep-13 23:35 
GeneralRe: PayPal Pin
Michael Martin6-Sep-13 23:43
professionalMichael Martin6-Sep-13 23:43 
GeneralRe: PayPal Pin
SoMad6-Sep-13 23:06
professionalSoMad6-Sep-13 23:06 
GeneralRe: PayPal Pin
Michael Martin6-Sep-13 23:28
professionalMichael Martin6-Sep-13 23:28 
GeneralRe: PayPal Pin
SoMad6-Sep-13 23:53
professionalSoMad6-Sep-13 23:53 
GeneralRe: PayPal Pin
Mark_Wallace8-Sep-13 23:24
Mark_Wallace8-Sep-13 23:24 
GeneralRe: PayPal Pin
SoMad8-Sep-13 23:33
professionalSoMad8-Sep-13 23:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.