title: How to return data in json format its returns string
body: <p>I have following code but its return data in string type.. how to return data in json format.</p>
  
  <pre><code>[HttpGet]
          public string Save(BookingInformation BookingJson)
          {
      SuccessResponse msg = new SuccessResponse();
      msg.FleetBookingId = objMaster.Current.Id.ToString();
      msg.Success = true;
      msg.Message = "Booking saved successfully";
      var obj = serializer.Serialize(msg).Trim('"');
      return obj;
  }
  </code></pre>
  
  <p>Calling Method</p>
  
  <pre><code>public async void getsave(BookingInformation BookingJson)
  {
      var baseAddress = new Uri("http://mycar.com");
  
      string url = "/api/Jobs/SaveBooking";
  
      using (var httpClient = new HttpClient { BaseAddress = baseAddress })
      {
          var Jsonlines = JsonConvert.SerializeObject(BookingJson);
          //httpClient.DefaultRequestHeaders.TryAddWithoutValidation("accept-charset", "utf-8");
  
          //httpClient.DefaultRequestHeaders.TryAddWithoutValidation("authorization", "Basic *sample_token*");
  
          using (var content = new StringContent(Jsonlines, System.Text.Encoding.Default, "application/json"))
          {
              using (var response = await httpClient.PostAsync(url, content))
              {
                  object responseData = await response.Content.ReadAsStringAsync();
              }
          }
      } 
  }
  </code></pre>
  
  <p>Result is : how to return only json. I want return data in json format</p>
  
  <pre><code>"{\"FleetBookingId\":\"36572\",\"Success\":true,\"Message\":\"Booking saved successfully\"}"
  </code></pre>
  
  <p>i want like this :</p>
  
  <pre><code>{"FleetBookingId":"36572","Success":true,"Message":"Booking saved successfully"}
  </code></pre>