【问题标题】:Exception has occurred. FormatException (FormatException: Unexpected extension byte (at offset 37))发生异常。 FormatException(FormatException:意外的扩展字节(在偏移量 37 处))
【发布时间】:2023-01-28 23:34:39
【问题描述】:

如何解决这个错误?

我想打印 json 文件的数据,但是当我调试我的代码时发生了这个错误,我期待 json 文件的数据作为输出。

【问题讨论】:

    标签: android flutter firebase dart


    【解决方案1】:

    像这样使用

    print(json.encode(data));
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-04-07
      • 1970-01-01
      • 2021-10-20
      • 2019-12-24
      • 2020-03-07
      • 1970-01-01
      • 2022-11-07
      • 2019-12-19
      相关资源
      最近更新 更多