title: Flutter/Dart Json exception
body: <p>I'm having an issue when handling Json in dart</p>
  
  <pre><code> Future Search(String tags) async{
      final response = await http.get(baseURL + tags + "&amp;limit=100",headers: {"Accept": "text/html,application/xml"});
      if (response.statusCode == 200) {
        final Xml2Json myTransformer = Xml2Json();
        // Parse a simple XML string
        myTransformer.parse(response.body);
        var uwu = myTransformer.toGData();
        List&lt;dynamic&gt; list = json.decode(uwu)["posts"]["post"];
        for (int i =0; i &lt; list.length; i++){
          print(json.decode(list[i]["file_url"]));
        }
        return response.body;
      } else {
        throw Exception('Search Failed');
      }
      }
  </code></pre>
  
  <p>The line causing the issue is <code>print(json.decode(list[i]["file_url"]));</code></p>
  
  <p>I'm a bit confused since the console log is showing</p>
  
  <pre><code>E/flutter (13398): [ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: FormatException: Unexpected character (at character 1)
  E/flutter (13398): https://img2.gelbooru.com/images/c6/45/c64561495096eac60f68d23e6437f213.png
  E/flutter (13398): ^
  E/flutter (13398): 
  E/flutter (13398): #0      _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1394:5)
  E/flutter (13398): #1      _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1261:9)
  E/flutter (13398): #2      _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:926:22)
  E/flutter (13398): #3      _parseJson (dart:convert-patch/convert_patch.dart:31:10)
  E/flutter (13398): #4      JsonDecoder.convert (dart:convert/json.dart:495:36)
  E/flutter (13398): #5      JsonCodec.decode (dart:convert/json.dart:153:41)
  E/flutter (13398): #6      GelbooruHandler.Search (package:loli/libBooru/GelbooruHandler.dart:25:20)
  E/flutter (13398): &lt;asynchronous suspension&gt;
  E/flutter (13398): #7      main (package:loli/main.dart:14:8)
  E/flutter (13398): #8      _runMainZoned.&lt;anonymous closure&gt;.&lt;anonymous closure&gt; (dart:ui/hooks.dart:239:25)
  E/flutter (13398): #9      _rootRun (dart:async/zone.dart:1126:13)
  E/flutter (13398): #10     _CustomZone.run (dart:async/zone.dart:1023:19)
  E/flutter (13398): #11     _runZoned (dart:async/zone.dart:1518:10)
  E/flutter (13398): #12     runZoned (dart:async/zone.dart:1502:12)
  E/flutter (13398): #13     _runMainZoned.&lt;anonymous closure&gt; (dart:ui/hooks.dart:231:5)
  E/flutter (13398): #14     _startIsolate.&lt;anonymous closure&gt; (dart:isolate-patch/isolate_patch.dart:307:19)
  E/flutter (13398): #15     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:174:12)
  E/flutter (13398): 
  </code></pre>
  
  <p>If you look at the second line of the log it is clearly selecting the file url properly but throws an exception for some reason so I dont know what i'm doing wrong</p>