I am trying to store a JSON object in MySQL database in spring boot. I know I am doing something wrong but I a can\'t figure out what it is because I am fairly new to Spring
You can use FasterXML (or similar) to parse the Json into an actual object (you need to define the class) and use Json.toJson(yourObj).toString() to retrieve the Json String. It also simplifies working with the objects since your data class may also have functionality.