title: "Unexpected Character" on Decoding JSON
body: <p>The following is the code:</p>
  
  <pre><code>    static TodoState fromJson(json) {
            JsonCodec codec = new JsonCodec();
              List&lt;Todo&gt; data = codec.decode(json["todos"]);
              VisibilityFilter filter = codec.decode(json['visibilityFilter']);
  
       return new TodoState(todos: data,
                            visibilityFilter: filter);
    }
  </code></pre>
  
  <p>Error produced by Android Studio:</p>
  
  <blockquote>
    <p>[VERBOSE-2:dart_error.cc(16)] Unhandled exception:
        FormatException: Unexpected character (at character 3)</p>
  </blockquote>
  
  <p>Any idea how to make it work?</p>
  
  <p><a href="https://i.stack.imgur.com/HRem7.png" rel="noreferrer"><img src="https://i.stack.imgur.com/HRem7.png" alt="enter image description here"></a></p>
  
  <p>This is the output of the Json as produced by Redux.</p>