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: properly escape json strings #1758

Closed

Conversation

xmedia-systems
Copy link

fix for #1757

@winlinvip winlinvip force-pushed the 3.0release branch 29 times, most recently from ccd8c86 to b59c37e Compare August 15, 2021 09:10
@winlinvip winlinvip force-pushed the 3.0release branch 2 times, most recently from 1ca9308 to 8d44b98 Compare August 15, 2021 09:22
@winlinvip winlinvip self-assigned this Aug 27, 2021
@winlinvip winlinvip added this to the SRS 4.0 release milestone Aug 27, 2021
@winlinvip winlinvip linked an issue Oct 19, 2021 that may be closed by this pull request
@winlinvip
Copy link
Member

Thanks for your PR, it's important to escape the special char for JSON. 👍

I think it's better to use https://github.com/udp/json-parser to marshal the JSON object.

@winlinvip winlinvip changed the title properly escape json strings JSON: properly escape json strings Oct 19, 2021
@winlinvip
Copy link
Member

winlinvip commented Oct 20, 2021

Merged as 34b968a

I wrote some utest to verify it.

@winlinvip winlinvip closed this Oct 20, 2021
winlinvip added a commit that referenced this pull request Oct 20, 2021
@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jul 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Special chars in API JSON
2 participants