You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Cannot find table with name <content.version> in the toml input. Are you sure that this table exists in the input? Not able to decode this toml part.
The text was updated successfully, but these errors were encountered:
aSemy
changed the title
Fetch a primitive value with a path, so I don't need to create my own classes
Fetch a primitive value with a TOML path, so I don't need to create my own classes
Jan 27, 2024
[a]
b = 42
c = "String"
[a.innerTable]
d = 5
[a.otherInnerTable]
d = "String"
// MyClass(a={b=42, c=String, innerTable={d=5}, otherInnerTable={d=String}})
@Serializable
data class MyClass(
val a: Map<String, Map<String, String>>
)
In TomlJ I can extract values without needing to create my own classes
I'd like to be able to do this with Ktoml.
I tried to use
partiallyDecodeFromString()
:But I got an error:
The text was updated successfully, but these errors were encountered: