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

Implement json_quote #763

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

pedrocarlo
Copy link
Contributor

Hi! This is my first PR on the project, so I apologize if I did not follow a convention from the project.

#127
This PR implements json_quote as specified in their source: https://www.sqlite.org/json1.html#jquote. It follows the internal doc guidelines for implementing functions. Most tests were added from sqlite test suite for json_quote, while some others were added by me. Sqlite test suite for json_quote depends on json_valid to test for correct escape control characters, so that specific test at the moment cannot be done the same way.

@pedrocarlo
Copy link
Contributor Author

Maybe it would be better to review first my refactor of json serialization and then later get back to this PR. #771

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

Successfully merging this pull request may close these issues.

1 participant