Skip to content
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

Any way to serialize an environment to file? #665

Closed
c272 opened this issue Sep 24, 2019 · 1 comment
Closed

Any way to serialize an environment to file? #665

c272 opened this issue Sep 24, 2019 · 1 comment

Comments

@c272
Copy link

c272 commented Sep 24, 2019

I'm looking to serialize a LexicalEnvironment/list of PropertyDescriptor classes to file, so I can load them again later to preserve the environment.

However, it's become quite troublesome trying to use Newtonsoft/JSON.NET to serialize/deserialize, as:

  1. JsValue has no constructor, so it fails to deserialize that class.
  2. JsValue's properties/fields are also mostly private, which prevents Newtonsoft serializing, at least on the settings I'm using.

So is there any way to serialize an environment to file?

@lahma
Copy link
Collaborator

lahma commented Jul 21, 2021

Closing as this is unsupported feature and would create maintenance burden due to backwards compatibility concerns. If this is about performance we can hopefully tackle that in more specific issues. If it's "game save data" maybe custom solution on library consumer side is in order .

@lahma lahma closed this as completed Jul 21, 2021
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

No branches or pull requests

2 participants