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

[Dev UI] Convert multi-line strings to JSON-escaped quotes when pasting into input box #747

Open
mbleigh opened this issue Aug 5, 2024 · 0 comments
Labels

Comments

@mbleigh
Copy link
Collaborator

mbleigh commented Aug 5, 2024

It would be really handy for the input editor if, when you paste a multiline string, it automatically converted it to a JSON string. So i paste:

hello world
i am not "valid JSON" per se

and it turns it into

"hello world\ni am not \"valid JSON\" per se"

I asked an AI to built a proof of concept: 🙂 https://codepen.io/mbleigh/pen/GRbmvrG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants