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

toJSON utility for deep jsonification #38

Open
NullVoxPopuli opened this issue Apr 12, 2024 · 1 comment
Open

toJSON utility for deep jsonification #38

NullVoxPopuli opened this issue Apr 12, 2024 · 1 comment

Comments

@NullVoxPopuli
Copy link
Collaborator

tc39/proposal-signals#164 (comment)

Context ^

@vospascal
Copy link

vospascal commented Nov 10, 2024

i would love to be able to stringify a whole data structure including signals, so support for this would be nice.
i understand its not default because map and sets also dont have this, which would also have been nice.

the api like toPrimitive might also be an option like used here https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toPrimitive

i saw WebReflection also mentioning it now sorry for extra post

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