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\' }
Use the org.json-Package.
JSONObject x = new JSONObject(jsonString); Credentials c = new Credentials(); c.email = x.getString("email"); c.password = x.getString("password");
Its also part of the android runtime, so you dont need any external package.