【发布时间】:2021-08-24 09:11:58
【问题描述】:
所以,我在这里尝试从 Firestore 中获取一些数据,当我尝试对其进行解码时,它会导致一些错误。
[ERROR:flutter/lib/ui/ui_dart_state.cc(186)] Unhandled Exception: FormatException: Unexpected character (at character 2)
E/flutter (32531): {version: 0, origin: {username: -, sessionId: 6660915144009228326, sessionV...
E/flutter (32531): ^
它的代码是
firebaseInstance.doc(docId).collection("sdp").doc("offersdp").get().then((value) async {
String offersdp = value.data()["sdp"];
var session = jsonDecode(offersdp); //At this line
【问题讨论】:
标签: json flutter google-cloud-firestore