Converting Kotlin Data Class from JSON using GSON 1. Overview In this short tutorial, we’ll discuss how to convert a data class in Kotlin to JSON string and vice versa using Gson Java library. 2. Maven Dependency Before we start, let’s add Gson to our pom.xml: <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>2.8.5</version> </dependency> 3.… Continue Reading kotlin-json-convert-data-class