我将如何在 React-Native 中使用 API 解析 JSON?

How would I parse JSON with use of API in React-Native?

我正在尝试解析 departures 中的 4、4c,但它不起作用。

this.setState 没有 return 导致你未定义的结果。

试试这个

this.setState({data : responseJson.departures});
alert( JSON.stringify(this.state.data));