Tag archives for JSON

Java

Parse and write JSON data in Java with Gson

Nowadays, JSON is the most widespread format to exchange data on the Web. REST Web Services use it. JSON is lighter than XML and lets to save bandwith when you consume this services. In Java, there is a great library named Gson that makes developers' life easier. Created by Google, Gson is open source and available on GitHub here : …
Continue Reading
Android

Make your REST client easily in Android with Retrofit

Very often, Android applications are connected to backend services and consume REST services to get data. When you think to that kind of apps, you can imagine an application that displays weather to a user and get data from a backend service. Or you can imagine a Todo client that stores todos on server to offer users to check their…
Continue Reading
Android

Learn how to parse JSON in Android with Gson

Previously you had learnt to consume a REST Web Service in JSON and parse result to display data in an Android application. To start from basics, I show you raw method that uses only standard SDK and no third-party libraries. I think it's better when you begin to understand how things work. Now, you know raw method so we can…
Continue Reading
Android

Learn to consume a REST Web Service and parse JSON result in Android

In mobiles applications, very often you should get data from a Web Service to update content displayed to users. For example, you can imagine a weather application that needs to request weather data from a remote server. Content getted can be under different formats but JSON format is one of the most used format with REST Web Service. So, you're…
Continue Reading