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

Auto remove for slashes ( unslashes ) #1245

Closed
hrizal opened this issue Feb 19, 2021 · 4 comments
Closed

Auto remove for slashes ( unslashes ) #1245

hrizal opened this issue Feb 19, 2021 · 4 comments

Comments

@hrizal
Copy link

hrizal commented Feb 19, 2021

maybe it is for next feature

@josdejong
Copy link
Owner

Rizal do you mean slashes like \n? Those are necessary escape characters needed for example for return, tab, etc. In that case I think this is a duplicate of #185.

@hrizal
Copy link
Author

hrizal commented Feb 23, 2021

usually if we copy and paste from the JSON format in the form of a JSON string

example:

{
  "name": "rizal",
  "address": "{\" home \ ": \" road no 1 \ ", \" office \ ": \" road no 2 \ "}"
}

and we try to copy the contents of the address

{\ "home \": \ "road no 1 \", \ "office \": \ "road no 2 \"}

This is an unusual format, but sometimes there is such data

image

@josdejong
Copy link
Owner

Ah, now I understand you. I've encountered those cases too. Would be very nice if we could repair that. I've opened an issue for it in the jsonrepair library: josdejong/jsonrepair#16

@josdejong
Copy link
Owner

Repairing of escaped strings containing JSON is now available (jsoneditor@9.3.0, web application v5.7.0)

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