title: Getting Exception in flutter json decode FormatException: Unexpected end of input (at character 5)
body: <p>in JSON decode from HTTP response I get this Exception,</p>
  <pre><code>I/flutter ( 4840): FormatException: Unexpected end of input (at character 5)
  I/flutter ( 4840):
  I/flutter ( 4840):     ^
  
  </code></pre>
  <p>What is this error about?</p>
  <pre><code> @override
    Future&lt;List&lt;Coupon&gt;&gt; getCoupon({user,today}) async {
      try {
        final http.Response  response = await http.get(url);
        var items = json.decode(response.body);
        List&lt;Coupon&gt; couponList =[];
        for(var item in items){
          couponList.add(Coupon.fromJson(item));
        }
        
      } catch (e) {
        print(e.toString());
      }
    }
  </code></pre>
  <p>But there is no problem and the code runs properly</p>