Hi, I’m currently trying to integrate one of our (...
# talk-kratos
i
Hi, I’m currently trying to integrate one of our (Java) services with Kratos using the provider java SDK. When calling
toSession(null, token)
and getting a
Session
object I would like to retrieve the traits of the user. But
getTraits
returns a
Object
( link ) which actually turns out to be a
com.google.gson.internal.LinkedTreeMap
. Is there a way to get the raw json string and parse it myself, or just a plain
Map
such that I don’t have to bind our code to Kratos’ JSON parsing library of choice or anything internal of gson (as this is also strongly discouraged). Any tips would be greatly appreciated.