We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73935dd commit 7ac9105Copy full SHA for 7ac9105
OpacityCore/src/main/java/com/opacitylabs/opacitycore/OpacityCore.kt
@@ -159,11 +159,11 @@ object OpacityCore {
159
// return withContext(Dispatchers.IO) { getGustoPayrollAdminIdNative() }
160
// }
161
162
- fun parseJsonElementToAny(jsonElement: JsonElement): Any {
+ private fun parseJsonElementToAny(jsonElement: JsonElement): Any {
163
return when (jsonElement) {
164
is JsonPrimitive -> {
165
when {
166
- jsonElement.isString -> jsonElement.toString()
+ jsonElement.isString -> jsonElement.content
167
jsonElement.intOrNull != null -> jsonElement.int
168
jsonElement.booleanOrNull != null -> jsonElement.boolean
169
jsonElement.doubleOrNull != null -> jsonElement.double
0 commit comments