JSON to Java class

后端 未结 4 631
说谎
说谎 2021-02-13 15:22

Is there an easy way to map data from JSON to fields of my class by means of android APIs?

JSON:

{ email: \'email\', password: \'pass\' }
4条回答
  •  你的背包
    2021-02-13 15:38

    I suppose you have more than one Credential u want to get...

    with the org.json package you could use a JSONArray to get various values at the same time out of one JSON file.

提交回复
热议问题