-
Notifications
You must be signed in to change notification settings - Fork 626
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
Properties should support String encoding/decoding #1152
Comments
I think it would be a good intermediate step to provide API for parsing |
Hi, here's the original creator of the YouTrack issue. Thank you very much for taking care of this. While work was actually done here, I was also working on a personal implementation of this functionality. However, I was not aware of the fact that there already exist ways of resolving the required primitive types of the model classes in the core lib. You may imagine that I had quite a struggle trying to implement the type resolving on my own. Anyway, I'm now somewhat relieved to see that I don't have to use my own version for this. Apparently, the current issue is to get from the Can we expect this feature to appear in a new version in the near future? PS, a few notes on the gist:
|
I would love to see this support:
|
What is your use-case and why do you need this feature?
Currently, Properties allow to parse
Map<String, Any>
object to a Kotlin class. Usually, such properties are loaded from configuration file. While we do not have multiplatform IO or files, we still can parse properties from a string contents of such file, since parsing line breaks/separators/etc is an additional amount of work.Originally reported here: https://youtrack.jetbrains.com/issue/KT-42716
Note: it is relatively easy task though with common collection operations.
The text was updated successfully, but these errors were encountered: