title: How can i return a dynamic json/xml object in my WCF webservice
body: <p>I have several webservices working as an API for my database, built in C#, WCF 4, returning json and xml format. Currently they work with specific Typed objects, but i want to be able to return dynamic data. Somewhat like what the <a href="http://code.google.com/intl/sv-SE/apis/youtube/2.0/reference.html" rel="nofollow">Youtube API</a> does, you can send in the "fields" variable, and only get the specified datafields back.</p>
  
  <p>I'm thinking i could probably use the Dynamic type for this somehow, but I havn't used it much and have no idea where to begin. Ideally if someone could point me to a project where this has been implemented i could learn from there, or if someone has an idea on how to implement this.</p>