Skip to content

Support Config serialization with ISerializable #207

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

Merged
merged 1 commit into from
Jan 27, 2020

Conversation

IgorFedchenko
Copy link
Contributor

Close #206

Fairly talking, this is a quick fix: when serializing config, we are producing something like { "_dump": "<config.ToString()>" } - but at least this is a valid json, and correctly deserializable.

The only thing this will break if people for some reason are storing HOCON configuration in json format, and then will try to load their stored configuration with our new library version. But that's edge (and weird) case, so let's have this as a quick fix.

Copy link
Member

@Aaronontheweb Aaronontheweb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in the short run

@Aaronontheweb Aaronontheweb merged commit ce2a551 into akkadotnet:dev Jan 27, 2020
@IgorFedchenko IgorFedchenko deleted the fix/json-serialization branch January 27, 2020 19:41
@Aaronontheweb Aaronontheweb added this to the 1.3.3 milestone Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make Config object serializable with Json.NET
2 participants