Nested json class

Aug 13, 2010 at 2:15 AM
Edited Aug 16, 2010 at 9:20 PM

Hello folks, a bit of newbie question, I'm trying to build a Json request using Json.Net. The request itself is not a simple key value please take a look at the example below to see what I'd like the final Json output to look like. I was able to create the object for the simple values (i.e. from and size) and arrays (i.e. fields) but then i got stuck for example the "sort" or "query" attributes, would that be a container? would I have to create a separate class for it and instantiate it from the main class? Any thoughts are greatly appreciated.