AndrewRedican / react-json-editor-ajrm

A modular, easy to use, react component, to view, edit, and debug javascript objects.
MIT License
355 stars 126 forks source link

string ending with backslash gives error #188

Closed merlich9 closed 1 year ago

merlich9 commented 3 years ago
  1. What version of RJEA are you using (react-json-editor-ajrm version)? 2.5.13
  2. What operating system and processor architecture are you using? Windows 10 x64
  3. What did you do? string that ends with escaped backslash fails. i.e. { 'test': 'abc\def\' }
  4. What did you expect to see? is valid json
  5. What did you see instead? the trailing '\' displays an error. If it is removed, error goes away. 'abc\def' shows correct, but 'abc\def\' shows an error even though it is valid json.
abischolz commented 3 years ago

Similar issue using punctuation

  1. What version of RJEA are you using (react-json-editor-ajrm version)? 2.5.9
  2. What operating system and processor architecture are you using? macOS BigSur 1.1 GHz Quad-Core Intel Core i5
  3. What did you do? Trying to display value with lots of punctuation, but is valid JSON ("title": "Punctuation Accepted *!.,;'\"&'")
  4. What did you expect to see? JSON displayed in the editor
  5. What did you see instead? Editor is escaping after '\'. Does not display the rest of the JSON (see attached) and can't edit and save. Not throwing any errors. Screen Shot 2021-10-20 at 1 40 16 PM
AndrewRedican commented 1 year ago

I no longer intend to update this project. I am working instead on a complete rewrite.

I'd like to thank you for using and taking interest in this project.

I also would like to apologize for not following up sooner. However, do realize for the most part this has been a one-man show, and the occasional contributions I used to receive. What I am saying is, I am in dire need of volunteers.

If this is something you would be interested in participating in, you can join in the discussion.

I've taken note of this thread, and I'll keep this under consideration for the new project.