title: HTTP.put method in dart
body: <p>I have been trying to send a <strong>http put</strong> request through flutter framework using the dart http package.
  Here is my json String </p>
  
  <pre><code>var jsonMap = {
  
    'status': '1',
      'time': new DateTime.now().toIso8601String(),
      'teamMemId': '7',
      'empId': "953280086v",
      'comId': 2.toString(),
      'description': "j new attendence",
      'effDate': date.toIso8601String()
  
  
  };
  </code></pre>
  
  <p>and the http request method </p>
  
  <pre><code>String jsonStr = jsonEncode(jsonMap);
  print(jsonMap);
  http.put(Uri.encodeFull(url), body: jsonStr , headers: { "Accept" : "application/json"}).then((result) {
    print(result.statusCode);
    print(result.body);
  });
  </code></pre>
  
  <p>The error is that node.js file does not capture the json string, it just shows an empty object. However, when I tested with the postman it works well. </p>