🌐
GitHub
github.com › google › gson
GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back · GitHub
These are the optional Java Platform Module System (JPMS) JDK modules which Gson depends on.
Starred by 24.3K users
Forked by 4.4K users
Languages   Java
open-source Java library to serialize and deserialize Java objects to and from JSON
Gson, or Google Gson, is an open-source Java library that serializes Java objects to JSON (and deserializes them back to Java). The Gson library was originally developed for internal purposes at Google, … Wikipedia
Factsheet
Google Gson
Developer Google
Initial release May 22, 2008; 17 years ago (2008-05-22)
Factsheet
Google Gson
Developer Google
Initial release May 22, 2008; 17 years ago (2008-05-22)
People also ask

Is GSON deprecated?
No, Gson is not deprecated. It remains a widely used and maintained library for parsing and serializing JSON in Java and Kotlin projects. Google continues to support Gson, and it is still a reliable choice for handling JSON data in applications, including Android projects.
🌐
dhiwise.com
dhiwise.com › post › kotlin-gson-for-effective-json-handling
Kotlin GSON Guide: Simplifying Data Serialization
Why use Gson instead of JSON?
Gson simplifies JSON parsing and serialization, allowing developers to convert JSON strings to objects and vice versa easily. It supports complex data structures, annotations for mapping JSON keys, and handles nested objects, arrays, and generic types efficiently. Gson's flexibility and integration with Java and Kotlin make it a superior choice.
🌐
dhiwise.com
dhiwise.com › post › kotlin-gson-for-effective-json-handling
Kotlin GSON Guide: Simplifying Data Serialization
How to add Gson to Kotlin?
To add Gson to a Kotlin project, include the Gson library dependency in your build file (e.g., Gradle or Maven). Ensure you use the latest version for compatibility. Once added, you can start using GSON for JSON parsing and serialization tasks in your Kotlin application.
🌐
dhiwise.com
dhiwise.com › post › kotlin-gson-for-effective-json-handling
Kotlin GSON Guide: Simplifying Data Serialization
🌐
Medium
medium.com › @zorbeytorunoglu › gson-on-android-9a6c34cb7044
Gson on Android | Medium
May 18, 2024 - To use Gson in an Android project, you typically include it as a dependency in your build.gradle file.
🌐
Codepath
guides.codepath.org › android › leveraging-the-gson-library
Leveraging the Gson Library | CodePath Android Cliffnotes
Google's Gson library provides a powerful framework for converting between JSON strings and Java objects. This library helps to avoid needing to write boilerplate code to parse JSON responses yourself. It can be used with any networking library, including the Android Async HTTP Client and OkHttp.
🌐
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson
Maven Repository: com.google.code.gson » gson
September 10, 2025 - Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.google.code.gson » gson · Gson is a Java library that can be used to convert Java Objects into their JSON representation.
🌐
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson › 2.7
Maven Repository: com.google.code.gson » gson » 2.7
June 14, 2016 - Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.google.code.gson » gson » 2.7 · Gson is a Java library that can be used to convert Java Objects into their JSON representation.
Published   Jun 14, 2016
Version   2.7
🌐
DhiWise
dhiwise.com › post › kotlin-gson-for-effective-json-handling
Kotlin GSON Guide: Simplifying Data Serialization
December 31, 2024 - It is widely used in Android projects and Kotlin applications because it can handle complex JSON data structures, including nested objects and arrays. To start using GSON, you must add it as a dependency in your Kotlin project.
Find elsewhere
🌐
Maven Repository
mvnrepository.com › artifact › com.squareup.retrofit2 › converter-gson
Maven Repository: com.squareup.retrofit2 » converter-gson
May 15, 2025 - Dependency Injection · XML Processing · Concurrency Libraries · Web Frameworks · Android Platform · Code Generators · View All · Home » com.squareup.retrofit2 » converter-gson · A Retrofit Converter which uses Gson for serialization. LicenseApache 2.0 ·
🌐
GeeksforGeeks
geeksforgeeks.org › android › difference-between-gson-and-json-in-android
Difference Between GSON and JSON in Android - GeeksforGeeks
July 23, 2025 - GSON is a standardized library that is managed by Google · It is a reliable, fast, and efficient extension of the Java standard library. ... <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.9.1</version> </dependency>
🌐
Medium
medium.com › @pypriyank › consuming-rest-api-in-android-using-retrofit-and-gson-20268aadf0eb
Consuming REST API in android using Retrofit and GSON. | by Priyank Kumar | Medium
March 28, 2020 - Now let’s get into our android project. The First thing we are going to do is add retrofit and GSON library to our build.gradle (Module:app) > dependencies.
🌐
Geeky Hacker
geekyhacker.com › home › android sdk › how to add gson library to android studio project
How to add Gson library to Android Studio project
August 5, 2020 - Adding libraries in Android Studio is fairly easy in overall. In this example, I explain about importing Gson lib to Android project. In order to add library click on File menu from Android Studio and select Project Structure like the following picture, Then from the pop up menu select Dependencies tab like this
🌐
GitHub
google.github.io › gson › UserGuide.html
Gson User Guide | gson
To use Gson with Maven2/3, you can use the Gson version available in Maven Central by adding the following dependency:
🌐
Maven Central
central.sonatype.com › artifact › com.google.code.gson › gson
Maven Central - com.google.code.gson - Sonatype
Dependencies · Gson JSON library · Copy to clipboard · <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.13.2</version> </dependency> Copy to clipboard · <?xml version="1.0" encoding="UTF-8"?> <!-- Copyright 2008 Google LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
🌐
Medium
medium.com › @hissain.khan › parsing-with-google-gson-library-in-android-kotlin-7920e26f5520
Parsing with Google Gson library in Android Kotlin
May 6, 2020 - In this tutorial I will discuss ... library you need to add following dependency in your projects module gradle file (Module: app/build.gradle) and re sync....
🌐
Google
android.googlesource.com › platform › external › gson
platform/external/gson - Git at Google
These are the optional Java Platform Module System (JPMS) JDK modules which Gson depends on.
🌐
Google Groups
groups.google.com › g › google-gson › c › 43dq3p1tta8
GSON library problems on Android
Looks like it could be related to our HTC-shipping-Gson bug: http://code.google.com/p/google-gson/issues/detail?id=255 The easiest workaround is to use jarjar to give Gson a different package name when you distribute in an Android app.
🌐
GitHub
github.com › square › retrofit › blob › trunk › retrofit-converters › gson › README.md
retrofit/retrofit-converters/gson/README.md at trunk · square/retrofit
A default Gson instance will be created or one can be configured and passed to the GsonConverterFactory to further control the serialization. Download the latest JAR or grab via Maven: <dependency> <groupId>com.squareup.retrofit2</groupId> <artifactId>converter-gson</artifactId> <version>latest.version</version> </dependency> or Gradle: implementation 'com.squareup.retrofit2:converter-gson:latest.version' Snapshots of the development version are available in Sonatype's snapshots repository.
Author   square