title: Flutter: Send JSON body for Http GET request
body: <p>I need to make a GET request to an API from my Flutter app which requires request body as JSON (raw).</p>
  
  <p>I tested the API with JSON request body in Postman and it seems to be working fine.</p>
  
  <p><a href="https://i.stack.imgur.com/4496D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/4496D.png" alt="enter image description here"></a></p>
  
  <p>Now on my Flutter application I am trying to do the same thing:</p>
  
  <pre><code>_fetchDoctorAvailability() async {
      var params = {
        "doctor_id": "DOC000506",
        "date_range": "25/03/2019-25/03/2019" ,
        "clinic_id":"LAD000404"
      };
  
      Uri uri = Uri.parse("http://theapiiamcalling:8000");
      uri.replace(queryParameters: params);
  
      var response = await http.get(uri, headers: {
        "Authorization": Constants.APPOINTMENT_TEST_AUTHORIZATION_KEY,
        HttpHeaders.contentTypeHeader: "application/json",
        "callMethod" : "DOCTOR_AVAILABILITY"
      });
  
      print('---- status code: ${response.statusCode}');
      var jsonData = json.decode(response.body);
  
      print('---- slot: ${jsonData}');
  }
  </code></pre>
  
  <p>However the API gives me an error saying </p>
  
  <blockquote>
    <p>{message: Missing input json., status: false}</p>
  </blockquote>
  
  <p>How do I send a raw (or rather JSON) request body for Http GET request in Flutter?</p>