title: How to return an arbitrary json object from Asp.net WebApi RC?
body: <p>Before I had this code to return an arbitrary json object with just an id property.
  How do I convert this to the new RC version of WebApi now that HttpResponseMessage is not supported and it now uses Newtonsofts JSON.NET?</p>
  
  <pre><code>public HttpResponseMessage&lt;JsonValue&gt; Post(MyModel model)
  {
              var id = _theService.AddEntity(model);
              dynamic okResponse = new JsonObject();
              okResponse["id"] = id;
              return new CreateResponse&lt;JsonValue&gt;(okResponse);
  }
  </code></pre>
  
  <p>And...</p>
  
  <pre><code>public class CreateResponse&lt;T&gt; : ResponseBase&lt;T&gt;
      {
          public CreateResponse()
              : base(HttpStatusCode.Created)
          {
          }
  
          public CreateResponse(T resource)
              : base(resource, HttpStatusCode.Created)
          {
          }
      }
  
   public abstract class ResponseBase&lt;T&gt; : HttpResponseMessage&lt;T&gt;
      {
          protected ResponseBase(HttpStatusCode httpStatusCode)
              : base(httpStatusCode)
          {
          }
  
          protected ResponseBase(T resource, HttpStatusCode httpStatusCode)
              : base(resource, httpStatusCode)
          {
  
  
              if (resource is IApiResource)
              {
                  var apiResource = resource as IApiResource;
                  var resourceLocation = new ResourceLocation();
                  apiResource.SetLocation(resourceLocation);
                  Headers.Location = resourceLocation.Location;
              }
          }
      }
  </code></pre>