react-json-editor-ajrm
react-json-editor-ajrm copied to clipboard
String Literals do not parse correctly
- What version of RJEA are you using (react-json-editor-ajrm version)? 2.5.8
- What operating system and processor architecture are you using? MAC OSX
- What did you do? Developer
- What did you expect to see? String literal to parse correctly in the editor
- What did you see instead? doesn't parse correctly, getting an error when rendering
Reproduce steps:
- Using the create-react-app example
- Modify one of the sample data properties to the following (I did it for the userID of the first person): 'Sum({< DateNum = {">=$(vGlobalStartDate)<=$(vGlobalEndDate)"},FrequencyNumber = {1}>} [Firm TNA])'
- Note that it renders as not a string at first
- Touch (dirty) the editor, and observe that it now errors out.
Hello @sunpar
thank you very much for reporting this. I can reproduce this issue on my end.
A workaround for now would be to also escape double quotes inside of strings: Sum({< DateNum = {\">=$(vGlobalStartDate)<=$(vGlobalEndDate)\"},FrequencyNumber = {1}>} [Firm TNA])
I'll label this as a bug and will close this issue once its fixed.