-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deserialize TomlNode? #280
Comments
Hey! Yes, we have a partial serialization. It is very easy |
Hm, may be I am getting this wrong, but if your file is changing dynamically and you re-read it again and again, then there anyway will be same parsing. May be you can give some small example of the input and API, so we can implement it? |
The file isn't changing, but i need to read the file as such [a]
foo = "foo"
bar = "bar"
[b.a]
foo = "foo"
bar = "bar"
[b.b]
foo = "foo"
bar = "bar"
[x.y.z]
foo = "foo"
bar = "bar" and then decode the file as such that i get And i already have the correct TomlTables i want to convert to Foobar, it's just that ktoml offers no way to do this conversion directly without using partial deserialization which is highly inefficient if you invoke it multiple times which is required here |
I need to dynamically traverse a toml file since i cannot deserialize the whole thing, but have not found a way to deserialize a TomlNode into a kotlinx Serializable class. Is it possible? If not, i think adding this functionality would be beneficial
The text was updated successfully, but these errors were encountered: