Hi I know how to fetch an string from jsonobject, but my question is how to fetch an image from Rest api and display it. The image is stored as profile_image in jsonobject>
If you want to use Picasso Image library for this, you can do it like this:
if (object.has("profile_image") { Picasso.with(context).load(object.get("profile_image")).into(R.id.image_view); }
Check out https://github.com/square/picasso for documentation.