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

Json-ifying string with newlines in it creates invalid JSON #492

Open
akhaku opened this issue Nov 12, 2020 · 2 comments
Open

Json-ifying string with newlines in it creates invalid JSON #492

akhaku opened this issue Nov 12, 2020 · 2 comments

Comments

@akhaku
Copy link
Contributor

akhaku commented Nov 12, 2020

No description provided.

@yalinhuang
Copy link

We ran into another similar issue due to special characters not escaped in HollowRecordJsonStringifier.stringify() -- it's a tab character ('\t'). Despite that such characters might not make any valuable meaning to the data and should be sanitized before passing down to Cinder, it'd be nice that the HollowRecordJsonStringifier.stringify() can handle general data values.

@nayanika-u
Copy link
Contributor

Hi @yalinhuang, looking into this one.

clay-mayers added a commit to clay-mayers/hollow that referenced this issue Mar 11, 2024
clay-mayers added a commit to clay-mayers/hollow that referenced this issue Mar 11, 2024
Only process a single character at a time - Processing 4 at at
a time has more repeatable timing but on average is slower.

Processing an unescaped string can be faster than the original
method of find/find.
clay-mayers added a commit to clay-mayers/hollow that referenced this issue Mar 12, 2024
clay-mayers added a commit to clay-mayers/hollow that referenced this issue Mar 21, 2024
clay-mayers added a commit to clay-mayers/hollow that referenced this issue Mar 21, 2024
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

3 participants