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

Create a encodeForJSON() function #36

Open
jmanico opened this issue Jul 28, 2020 · 6 comments
Open

Create a encodeForJSON() function #36

jmanico opened this issue Jul 28, 2020 · 6 comments

Comments

@jmanico
Copy link
Member

jmanico commented Jul 28, 2020

We should create a function to safely embed JSON on a webpage simular to to what https://github.com/yahoo/serialize-javascript accomplishes.

@melloware
Copy link

This would be a great feature as we have needed something similar in the past.

@Infernalbronco
Copy link

Can I try this?

@jmanico
Copy link
Member Author

jmanico commented Jan 16, 2021 via email

@Infernalbronco
Copy link

@jmanico Can u give any pointers from where I can start studying for this?

@jmanico
Copy link
Member Author

jmanico commented Jul 20, 2021

@jeremylong
Copy link
Member

Wouldn't Encode.forJavaScriptSource() work? You would just be responsible for quoting the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants
@jmanico @jeremylong @melloware @Infernalbronco and others