🌐
GitHub
github.com › google › gson
GitHub - google/gson: A Java serialization/deserialization library to convert Java Objects into JSON and back · GitHub
Gradle: dependencies { implementation 'com.google.code.gson:gson:2.13.2' } Maven: <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.13.2</version> </dependency> Gson jar downloads are available from Maven Central. Gson 2.12.0 and newer: Java 8 ·
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)
🌐
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson › 2.7
Maven Repository: com.google.code.gson » gson » 2.7
June 14, 2016 - Gson is a Java library that can be used to convert Java Objects into their JSON representation.
Published   Jun 14, 2016
Version   2.7
🌐
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson
Maven Repository: com.google.code.gson » gson
September 10, 2025 - Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. ... aar android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse example ...
🌐
Gradle
discuss.gradle.org › help/discuss
Issue using gson in gradle plugin - Help/Discuss - Gradle Forums
June 29, 2023 - I am indirectly importing gson in a gradle plugin. I check the dependencies and everywhere I am using the same version of gson: 2.10.1 (the latest at the time of writing). Yet, when I use my plugin I get the infamous exception: java.lang.NoSuchMethodError: 'com.google.gson.JsonElement com.google.gson.internal.Streams.parse(com.google.gson.stream.JsonReader)' I suppose that gradle is coming with its own version of gson and that it is quite old.
🌐
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.
🌐
GitHub
github.com › google › gson › issues › 1885
Cannot use Gson with gradle · Issue #1885 · google/gson
February 17, 2021 - Hello, I'm doing a project in kotlin and I need Gson but can't seem to get it with gradle Code (in build.gradle): dependencies { implementation 'com.google.code.gson:gson:2.8.6' } Error : > Could not find method implementation() for argu...
Author   cetuuus
Find elsewhere
🌐
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.
🌐
Gradle
discuss.gradle.org › help/discuss
Gradle jar java.lang.NoClassDefFoundError: com/google/gson/GsonBuilder - Help/Discuss - Gradle Forums
November 8, 2022 - I have created a new project with vscode, plugins like java and gradle are installed, in the build.gradle I write under dependencies { implementation ‘com.google.code.gson:gson:2.10’. } and then see the jar under “Project and External Dependencies” in vscode and in the gradle plugin, and can create an instance of Gson in the mainclass by import com.google.gson.Gson and so on.
🌐
Gradle
discuss.gradle.org › help/discuss
How to force version of transitive dependency to not change? - Help/Discuss - Gradle Forums
September 10, 2019 - I have an implementation like this implementation('com.google.code.gson:gson:2.8.6') implementation('com.squareup.retrofit2:converter-gson:2.6.0') // USES GSON(2.8.5) INTERNALLY implementation(name: 'sign-library', ext:…
🌐
Jar-Download
jar-download.com › home › com.google.code.gson › gson › 2.8.6 › source code › gson.java
com.google.gson.Gson Maven / Gradle / Ivy
com.google.gson.Gson maven / gradle build tool code. The class is part of the package ➦ Group: com.google.code.gson ➦ Artifact: gson ➦ Version: 2.8.6
🌐
Stack Overflow
stackoverflow.com › questions › 74351733 › gradle-downloading-the-gson-library-of-2-different-versions-2-9-0-and-2-8-6-how
java - Gradle downloading the gson library of 2 different versions 2.9.0 and 2.8.6. How to force it to download only gson 2.9.0 - Stack Overflow
With gradle dependencies you can see what brings this 2.8.6 version, let's call it x.y, with version v, and then add to your gradle.build this: compile ("x.y:v") { exclude(module: 'com.google.code.gson')
🌐
Maven Repository
mvnrepository.com › artifact › com.google.code.gson › gson › 2.3.1
Maven Repository: com.google.code.gson » gson » 2.3.1
Gson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. ... aar amazon android apache api arm assets build build-system bundle client clojure cloud config cran data database eclipse ...
🌐
HowToProgram
howtoprogram.xyz › 2016 › 10 › 16 › gson-example-maven-gradle
Gson Example with Maven and Gradle | HowToProgram
December 30, 2017 - This tutorial will cover quickly how to set up a Gson example with Maven and Gradle so that you can get started with more useful features of Gson. The only one dependency of Gson we will need is com.google.code.gson.
🌐
Sourcecodeexamples
sourcecodeexamples.net › 2019 › 12 › gson-maven-dependency.html
Gson Maven Dependency
December 3, 2019 - <!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.6</version> </dependency> For more details about the proper version to use, check out the following Maven Central link. Copy below Gson gradle dependency and paste in your project build.gradle file: // https://mvnrepository.com/artifact/com.google.code.gson/gson compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6' https://repo1.maven.org/maven2/com/google/code/gson/gson/2.8.6/gson-2.8.6.jar ·