在 Android 中使用 Gson 库可以很方便地实现 JSON 字符串转成 Map。首先需要添加 Gson 库的依赖,例如: implementation 'com.google.code.gson:gson:2.8.6'