每当我尝试显示从我的 API 端点在我的 React Native 项目中获取的一些数据时,我都会收到此 JSON 解析错误: JSON parse error on line 0 near .."}], [18933, "RC': expected another Unicode escape for the second half of surrogate pair
很明显,Unicode 转义符缺少一个转义符。
我的字符串是“你可以试试,但我不这么认为”
我尝试在控制台中打印字符串并且显示正常,但是当我尝试在 React Native 的<Text></Text>组件中显示它时,我的应用程序崩溃了。
任何指导将不胜感激。