static HttpContent GetContent() { var jsonValue = new JsonObject(); jsonValue["Foo"] = "Bar"; return jsonValue.ToContent(); }