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

fix #18 use strict=False #20

Merged
merged 2 commits into from
Oct 23, 2023
Merged

fix #18 use strict=False #20

merged 2 commits into from
Oct 23, 2023

Conversation

lucemia
Copy link
Contributor

@lucemia lucemia commented Oct 23, 2023

  • fix use strict=False #18
  • 使用 strict = False 解決 input 中 \n encode 的問題
  • 這個問題不能用檔案呈現,所以另外寫了 test case

If strict is false (True is the default), then control characters will be allowed inside strings. Control characters in this context are those with character codes in the 0–31 range, including '\t' (tab), '\n', '\r' and '\0'.

https://docs.python.org/3/library/json.html

@lucemia lucemia marked this pull request as ready for review October 23, 2023 08:08
@lucemia lucemia merged commit 6d5f69b into main Oct 23, 2023
8 checks passed
@lucemia lucemia deleted the fix-18-strict-false branch October 23, 2023 08:17
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.

use strict=False
1 participant